fix np on macos
This commit is contained in:
parent
136935d4f9
commit
e6767dc3f9
|
@ -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) {
|
||||||
// エラーを返す
|
// エラーを返す
|
||||||
|
|
Loading…
Reference in New Issue
Block a user