Fix for notifications
This commit is contained in:
parent
aa4c2fb6e6
commit
49a6725e82
1 changed files with 11 additions and 13 deletions
|
@ -257,7 +257,7 @@ const app = new Vue({
|
|||
this.mk.authorize()
|
||||
this.$forceUpdate()
|
||||
this.mk.privateEnabled = true
|
||||
// this.platform = ipcRenderer.sendSync('cider-platform');
|
||||
this.platform = ipcRenderer.sendSync('cider-platform');
|
||||
// Set profile name
|
||||
this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "")
|
||||
// API Fallback
|
||||
|
@ -334,7 +334,6 @@ const app = new Vue({
|
|||
app.getNowPlayingArtworkBG(32);
|
||||
app.loadLyrics()
|
||||
|
||||
try {
|
||||
// Playback Notifications
|
||||
if ((app.platform === "darwin" || app.platform === "linux") && !document.hasFocus()) {
|
||||
if (this.notification) {
|
||||
|
@ -346,8 +345,7 @@ const app = new Vue({
|
|||
silent: true
|
||||
})
|
||||
}
|
||||
} catch (_) {
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
this.mk.addEventListener(MusicKit.Events.playbackVolumeDidChange, (_a) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue