Fix for notifications

This commit is contained in:
Core 2021-12-17 18:55:56 +00:00
parent aa4c2fb6e6
commit 49a6725e82

View file

@ -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) => {