From 872fd73b05887a829c7b38d2ad66db124f421f8a Mon Sep 17 00:00:00 2001 From: Map1en_ Date: Mon, 12 Apr 2021 01:16:28 +0800 Subject: [PATCH] fix(player): fix can't read prop seek of null (#537) fix #488 fix #497 --- src/utils/Player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Player.js b/src/utils/Player.js index 49cb7df..bd1123d 100644 --- a/src/utils/Player.js +++ b/src/utils/Player.js @@ -247,7 +247,7 @@ export default class { autoplay = true, ifUnplayableThen = "playNextTrack" ) { - if (autoplay) this._scrobble(this.currentTrack, this._howler.seek(), true); + if (autoplay) this._scrobble(this.currentTrack, this._howler?.seek(), true); return getTrackDetail(id).then((data) => { let track = data.songs[0]; this._currentTrack = track;