fix: bugs

This commit is contained in:
qier222 2021-04-28 13:44:19 +08:00
parent fa9f2d9785
commit 95f22f47fe
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
11 changed files with 50 additions and 56 deletions

View file

@ -47,10 +47,8 @@ export default class {
// init
this._init();
// for debug
if (process.env.NODE_ENV === 'development') {
window.player = this;
}
window.yesplaymusic = {};
window.yesplaymusic.player = this;
}
get repeatMode() {
@ -177,14 +175,6 @@ export default class {
setInterval(() => {
this._progress = this._howler === null ? 0 : this._howler.seek();
}, 1000);
// 发送正在播放的信息给主进程
setInterval(() => {
ipcRenderer.send('playerInfo', {
currentTrack: this.currentTrack,
progress: this._progress,
});
}, 1000);
}
_getNextTrack() {
if (this._playNextList.length > 0) {