diff --git a/package.json b/package.json index 2724971..9d4381a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sonist", - "version": "0.9.5", + "version": "0.9.6", "description": "Music Player", "main": "src/main.js", "scripts": { diff --git a/src/lib/lyrics/index.js b/src/lib/lyrics/index.js index fa70d78..325a8a3 100644 --- a/src/lib/lyrics/index.js +++ b/src/lib/lyrics/index.js @@ -29,6 +29,8 @@ class Lyrics { this.__ID__ = id + log(id) + this.lib = lrc .split('\n') .map(it => { @@ -104,7 +106,7 @@ class Lyrics { // 延时3秒写入 this.__TIMER__ = setTimeout(() => { - ipcRenderer.sendSync('save-lrc', { id: this.__ID__, lrc }) + ipcRenderer.send('save-lrc', { id: this.__ID__, lrc }) }, 3000) }