diff options
Diffstat (limited to 'views/script/menu_music.js')
-rw-r--r-- | views/script/menu_music.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/script/menu_music.js b/views/script/menu_music.js index f1d23f9..d650478 100644 --- a/views/script/menu_music.js +++ b/views/script/menu_music.js @@ -1,5 +1,5 @@ if (location.search !== "?noreset") { console.log("back"); - require('electron').ipcRenderer.send('newmusic', kresources.music['title'].file); + if (require('@electron/remote').getCurrentWindow().music) require('electron').ipcRenderer.send('newmusic', kresources.music['title'].file); } info("MenuWindow", "Menu opened"); |