aboutsummaryrefslogtreecommitdiff
path: root/views/script
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-21 17:04:02 +0100
committerMinteck <contact@minteck.org>2021-12-21 17:04:02 +0100
commit701e2156e5e872e2f2234cc630b0b821b149ca31 (patch)
treea97aab3aaa8da1dc23356946f530dc2ee41ec579 /views/script
parent4ea37b6a0089f0948859447c8751320d1a4559f1 (diff)
downloadkartik-client-701e2156e5e872e2f2234cc630b0b821b149ca31.tar.gz
kartik-client-701e2156e5e872e2f2234cc630b0b821b149ca31.tar.bz2
kartik-client-701e2156e5e872e2f2234cc630b0b821b149ca31.zip
Diffstat (limited to 'views/script')
-rw-r--r--views/script/game_music.js16
-rw-r--r--views/script/menu_music.js10
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");