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
+2 -2
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;