We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 210e65d commit 622f954Copy full SHA for 622f954
1 file changed
src/utils/Player.js
@@ -146,7 +146,7 @@ export default class {
146
}
147
set volume(volume) {
148
this._volume = volume;
149
- Howler.volume(volume);
+ this._howler?.volume(volume)
150
151
get list() {
152
return this.shuffle ? this._shuffledList : this._list;
@@ -207,7 +207,7 @@ export default class {
207
208
_init() {
209
this._loadSelfFromLocalStorage();
210
- Howler.volume(this.volume);
+ this._howler?.volume(this.volume);
211
212
if (this._enabled) {
213
// 恢复当前播放歌曲
0 commit comments