fix np on macos

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

View File

@ -16,6 +16,8 @@ function np(mainWindow) {
try { try {
const nowplaying = require("itunes-nowplaying-mac"); const nowplaying = require("itunes-nowplaying-mac");
const value = await nowplaying(); const value = await nowplaying();
const artwork = await nowplaying.getThumbnailBuffer(value.databaseID);
e.sender.webContents.send('itunes-np', value); e.sender.webContents.send('itunes-np', value);
} catch (error) { } catch (error) {
// エラーを返す // エラーを返す