aboutsummaryrefslogtreecommitdiff
path: root/views/script/game_music.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-27 19:18:42 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-27 19:18:42 +0200
commit73864d898c3fb3cb0d9a8e3060ae01e780774d48 (patch)
treed3b07d36074f8a58e10856e6cf5975edcd55c7a7 /views/script/game_music.js
parenta3104b69bc8153eed684f54e4249c84a6559182f (diff)
downloadkartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.tar.gz
kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.tar.bz2
kartik-client-73864d898c3fb3cb0d9a8e3060ae01e780774d48.zip
Sleek new loading screen
Diffstat (limited to 'views/script/game_music.js')
-rw-r--r--views/script/game_music.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/script/game_music.js b/views/script/game_music.js
index 2aa7e94..7d43a25 100644
--- a/views/script/game_music.js
+++ b/views/script/game_music.js
@@ -1,8 +1,8 @@
startHooks.push(() => {
info("MusicMgr", "Playing game" + i + ".mp3");
- require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file);
+ if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file);
})
if (location.search === "?online") {
- require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file);
-} \ No newline at end of file
+ if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file);
+}