From 498fcf74028815181a501138b5c250fc94ff6952 Mon Sep 17 00:00:00 2001 From: Vidocq <949867756@qq.com> Date: Fri, 26 Feb 2021 02:18:18 +0800 Subject: [PATCH] delete useless code --- src/utils/Player.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/utils/Player.js b/src/utils/Player.js index b4c80d3..b3ca6a1 100644 --- a/src/utils/Player.js +++ b/src/utils/Player.js @@ -164,7 +164,6 @@ export default class { document.title = `${this._currentTrack.name} ยท ${this._currentTrack.ar[0].name} - YesPlayMusic`; } this.setOutputDevice(); - // this._updatePositionState(); this._howler.once("end", () => { this._nextTrackCallback(); }); @@ -281,15 +280,6 @@ export default class { ], }); } - // _updatePositionState() { - // if ('setPositionState' in navigator.mediaSession) { - // navigator.mediaSession.setPositionState({ - // duration: this._currentTrack.dt / 1000, - // playbackRate: 1, - // position: this.seek(), - // }) - // } - // } _nextTrackCallback() { this._scrobble(true); if (this.repeatMode === "one") {