From f35056a916723642716c2c693146e83298174ee9 Mon Sep 17 00:00:00 2001 From: kPherox Date: Wed, 20 Mar 2019 21:59:29 +0900 Subject: [PATCH] Fix duplicate "itunes-np" listener --- app/js/ui/spotify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/ui/spotify.js b/app/js/ui/spotify.js index 646e6e4a..cb010b11 100644 --- a/app/js/ui/spotify.js +++ b/app/js/ui/spotify.js @@ -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"){