diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |