Moved to Electron Notifications
This commit is contained in:
parent
9228153172
commit
c773058328
3 changed files with 99 additions and 11 deletions
|
@ -44,6 +44,10 @@ const MusicKitInterop = {
|
|||
global.ipcRenderer.send('lastfm:nowPlayingChange', attributes);
|
||||
}
|
||||
|
||||
if (app.cfg.general.playbackNotifications && !document.hasFocus() && attributes.artistName && attributes.artwork && attributes.name) {
|
||||
global.ipcRenderer.send('playbackNotifications:create', attributes);
|
||||
}
|
||||
|
||||
if (MusicKit.getInstance().nowPlayingItem) {
|
||||
await this.sleep(750);
|
||||
MusicKit.getInstance().playbackRate = app.cfg.audio.playbackRate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue