Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Fix little bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptofyre committed Nov 30, 2020
1 parent 265875d commit 015edc5
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,49 +65,6 @@ function createWindow () {
updateMetaData(a)
})

electron.ipcMain.on('playbackStateDidChange', (item, a) => {
// updateMetaData(a)
switch (a) {
case 0:
console.log("NONE")
setPlaybackIfNeeded(playbackStatusPause);
break;
case 1:
console.log("loading")
setPlaybackIfNeeded(playbackStatusPause);
break;
case 2:
console.log("playing")
setPlaybackIfNeeded(playbackStatusPlay);
break;
case 3:
console.log("paused")
setPlaybackIfNeeded(playbackStatusPause);
break;
case 4:
console.log("stopped")
setPlaybackIfNeeded(playbackStatusStop);
break;
case 5:
console.log("ended")
break;
case 6:
console.log("seeking")
break;
case 7:
console.log("waiting")
break;
case 8:
console.log("stalled")
break;
case 9:
console.log("completed")
break;

}

})

async function getMusicKitAttributes() {
return await win.webContents.executeJavaScript(`MusicKitInterop.getAttributes()`);
}
Expand Down

0 comments on commit 015edc5

Please sign in to comment.