diff options
author | Minteck <nekostarfan@gmail.com> | 2021-06-11 18:34:28 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-06-11 18:34:28 +0200 |
commit | ad2d1e6ca122cb9d87c6f18d9900caa490af97ef (patch) | |
tree | 2d58fc36c3d12f09c849efba6d7fc61768f05ad3 /app.js | |
parent | 0596f707fdaa36892a75ba7d2b9e8f834e7f4cfe (diff) | |
download | kartik-client-ad2d1e6ca122cb9d87c6f18d9900caa490af97ef.tar.gz kartik-client-ad2d1e6ca122cb9d87c6f18d9900caa490af97ef.tar.bz2 kartik-client-ad2d1e6ca122cb9d87c6f18d9900caa490af97ef.zip |
Music fixes (yes, after the game release)
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); |