aboutsummaryrefslogtreecommitdiff
path: root/views/script/game_music.js
blob: beed4a01053b8169db4b4ba0974f258319a86d92 (plain)
1
2
3
4
5
6
7
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);
}