startHooks.push(() => { if (require('@electron/remote').getCurrentWindow().music) { info("MusicMgr", "Playing game" + i + ".mp3"); require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file); } }) if (location.search === "?online") { require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file); }