Fix duplicate "itunes-np" listener
This commit is contained in:
parent
216191563e
commit
f35056a916
|
@ -124,7 +124,7 @@ function nowplaying(mode){
|
||||||
var electron = require("electron");
|
var electron = require("electron");
|
||||||
var ipc = electron.ipcRenderer;
|
var ipc = electron.ipcRenderer;
|
||||||
ipc.send('itunes', "");
|
ipc.send('itunes', "");
|
||||||
ipc.on('itunes-np', function (event, arg) {
|
ipc.once('itunes-np', function (event, arg) {
|
||||||
console.log(arg);
|
console.log(arg);
|
||||||
var content=localStorage.getItem("np-temp");
|
var content=localStorage.getItem("np-temp");
|
||||||
if(!content || content=="" || content=="null"){
|
if(!content || content=="" || content=="null"){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user