From 701e2156e5e872e2f2234cc630b0b821b149ca31 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 17:04:02 +0100 Subject: Commit --- views/script/game_music.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'views/script/game_music.js') 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); +} -- cgit