From bc11e75d79105be695a4f3634ccdc363049fd786 Mon Sep 17 00:00:00 2001 From: cutls Date: Thu, 23 Jan 2020 00:39:06 +0900 Subject: [PATCH] Remove iranai ref --- app/js/ui/spotify.js | 4 ---- app/main/np.js | 7 ------- 2 files changed, 11 deletions(-) diff --git a/app/js/ui/spotify.js b/app/js/ui/spotify.js index f514def9..e52d1d4b 100644 --- a/app/js/ui/spotify.js +++ b/app/js/ui/spotify.js @@ -125,10 +125,6 @@ function nowplaying(mode) { } } function npCore(arg) { - if (arg.cmd) { - console.error(arg); - return; - } console.table(arg); var content = localStorage.getItem("np-temp"); if (!content || content == "" || content == "null") { diff --git a/app/main/np.js b/app/main/np.js index 5f288d08..32dac827 100644 --- a/app/main/np.js +++ b/app/main/np.js @@ -1,13 +1,6 @@ function np(mainWindow) { const electron = require('electron') - const join = require('path').join - const app = electron.app - const fs = require('fs') - const fpath = join(app.getPath('userData'), 'npexec') - const npExec = fs.readFileSync(fpath, 'utf8') const ipc = electron.ipcMain - - const { exec } = require('child_process') ipc.on('itunes', async (e, args) => { console.log('Access') if (args[0] == 'set') {