Update user.js

This commit is contained in:
A-Circle Zhang 2018-08-22 12:41:28 +08:00 committed by GitHub
parent 76eed8e570
commit 72b09d8b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class User {
};
this.default = {
opacity: 0.7,
volume: player.options.volume || 0.7,
volume: player.options.hasOwnProperty('volume') ? player.options.volume : 0.7,
unlimited: (player.options.danmaku && player.options.danmaku.unlimited ? 1 : 0) || 0,
danmaku: 1,
subtitle: 1
@ -38,4 +38,4 @@ class User {
}
}
export default User;
export default User;