fix np on macos
This commit is contained in:
parent
136935d4f9
commit
e6767dc3f9
|
@ -16,6 +16,8 @@ function np(mainWindow) {
|
|||
try {
|
||||
const nowplaying = require("itunes-nowplaying-mac");
|
||||
const value = await nowplaying();
|
||||
|
||||
const artwork = await nowplaying.getThumbnailBuffer(value.databaseID);
|
||||
e.sender.webContents.send('itunes-np', value);
|
||||
} catch (error) {
|
||||
// エラーを返す
|
||||
|
|
Loading…
Reference in New Issue
Block a user