From 68fe06367cbde1f3d6d9b71d63215b1f6629abdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sun, 27 Jan 2019 17:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AD=8C=E8=AF=8D=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=AF=BC=E8=87=B4app=E6=97=A0=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/lib/lyrics/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) }