diff options
Diffstat (limited to 'views/script')
-rw-r--r-- | views/script/game_music.js | 16 | ||||
-rw-r--r-- | views/script/menu_music.js | 10 |
2 files changed, 13 insertions, 13 deletions
diff --git a/views/script/game_music.js b/views/script/game_music.js index 7d43a25..beed4a0 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"); - if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file); -}) - -if (location.search === "?online") { - if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file); -} +startHooks.push(() => {
+ info("MusicMgr", "Playing game" + i + ".mp3");
+ if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file);
+})
+
+if (location.search === "?online") {
+ if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file);
+}
diff --git a/views/script/menu_music.js b/views/script/menu_music.js index d650478..e6ef323 100644 --- a/views/script/menu_music.js +++ b/views/script/menu_music.js @@ -1,5 +1,5 @@ -if (location.search !== "?noreset") { - console.log("back"); - if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['title'].file); -} -info("MenuWindow", "Menu opened"); +if (location.search !== "?noreset") {
+ console.log("back");
+ if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['title'].file);
+}
+info("MenuWindow", "Menu opened");
|