mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: bugs
This commit is contained in:
parent
fa9f2d9785
commit
95f22f47fe
11 changed files with 50 additions and 56 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue