From ad2d1e6ca122cb9d87c6f18d9900caa490af97ef Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Jun 2021 18:34:28 +0200 Subject: Music fixes (yes, after the game release) --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app.js') 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); -- cgit