fix macOS np

This commit is contained in:
cutls 2019-10-12 01:11:29 +09:00
parent d654b63bca
commit 136935d4f9

View File

@ -15,7 +15,7 @@ function np(mainWindow) {
if (platform == "darwin") {
try {
const nowplaying = require("itunes-nowplaying-mac");
const value = await nowplaying.getData();
const value = await nowplaying();
e.sender.webContents.send('itunes-np', value);
} catch (error) {
// エラーを返す