diff --git a/src/preload/cider-preload.js b/src/preload/cider-preload.js index 61aa89d0..c1eb6046 100644 --- a/src/preload/cider-preload.js +++ b/src/preload/cider-preload.js @@ -10,7 +10,7 @@ const MusicKitInterop = { if (MusicKitInterop.filterTrack(MusicKitInterop.getAttributes(), true, false)) { console.log("ayy"); global.ipcRenderer.send('playbackStateDidChange', MusicKitInterop.getAttributes()) - ipcRenderer.send('wsapi-updatePlaybackState', self.getAttributes()); + ipcRenderer.send('wsapi-updatePlaybackState', MusicKitInterop.getAttributes()); // if (typeof _plugins != "undefined") { // _plugins.execute("OnPlaybackStateChanged", {Attributes: MusicKitInterop.getAttributes()}) // } @@ -19,7 +19,7 @@ const MusicKitInterop = { /** wsapi */ MusicKit.getInstance().addEventListener(MusicKit.Events.playbackProgressDidChange, () => { - ipcRenderer.send('wsapi-updatePlaybackState', self.getAttributes()); + ipcRenderer.send('wsapi-updatePlaybackState', MusicKitInterop.getAttributes()); }); /** wsapi */ diff --git a/src/web-remote/index.html b/src/web-remote/index.html index 71f00535..6fc1e2d1 100644 --- a/src/web-remote/index.html +++ b/src/web-remote/index.html @@ -217,21 +217,21 @@