aboutsummaryrefslogtreecommitdiff
path: root/views/script/game_music.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 /views/script/game_music.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 'views/script/game_music.js')
-rw-r--r--views/script/game_music.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/views/script/game_music.js b/views/script/game_music.js
index 29b00da..2aa7e94 100644
--- a/views/script/game_music.js
+++ b/views/script/game_music.js
@@ -1,8 +1,6 @@
startHooks.push(() => {
- if (require('@electron/remote').getCurrentWindow().music) {
- info("MusicMgr", "Playing game" + i + ".mp3");
- require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file);
- }
+ info("MusicMgr", "Playing game" + i + ".mp3");
+ require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file);
})
if (location.search === "?online") {