aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app.js b/app.js
index 71578af..1b9ab13 100644
--- a/app.js
+++ b/app.js
@@ -265,7 +265,9 @@ const { app, BrowserWindow } = require('electron');
win.webContents.on('dom-ready', () => {
musicIpc = require('electron').ipcMain;
musicIpc.on('newmusic', (event, value) => {
- win.webContents.send('setmusic', value);
+ if (music) {
+ win.webContents.send('setmusic', value);
+ }
})
musicIpc.on('prefademusic', (event, value) => {
win.webContents.send('fademusic', value);