From ad2d1e6ca122cb9d87c6f18d9900caa490af97ef Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Jun 2021 18:34:28 +0200 Subject: Music fixes (yes, after the game release) --- views/script/game_music.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'views/script/game_music.js') 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") { -- cgit