Fix duplicate "itunes-np" listener

This commit is contained in:
kPherox 2019-03-20 21:59:29 +09:00
parent 216191563e
commit f35056a916
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D

View File

@ -124,7 +124,7 @@ function nowplaying(mode){
var electron = require("electron");
var ipc = electron.ipcRenderer;
ipc.send('itunes', "");
ipc.on('itunes-np', function (event, arg) {
ipc.once('itunes-np', function (event, arg) {
console.log(arg);
var content=localStorage.getItem("np-temp");
if(!content || content=="" || content=="null"){