aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-06-11 18:34:28 +0200
committerMinteck <nekostarfan@gmail.com>2021-06-11 18:34:28 +0200
commitad2d1e6ca122cb9d87c6f18d9900caa490af97ef (patch)
tree2d58fc36c3d12f09c849efba6d7fc61768f05ad3 /app.js
parent0596f707fdaa36892a75ba7d2b9e8f834e7f4cfe (diff)
downloadkartik-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.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);