Merge branch 'main' of https://github.com/ciderapp/Cider
This commit is contained in:
commit
d15a0351d4
1 changed files with 8 additions and 0 deletions
|
@ -168,6 +168,14 @@ export class AppEvents {
|
|||
utils.getWindow().webContents.executeJavaScript(`ipcRenderer.send('lastfm:auth', "${authURI.split('lastfm?token=')[1]}")`).catch(console.error)
|
||||
}
|
||||
}
|
||||
else if (arg.includes('playpause')) {
|
||||
//language=JS
|
||||
utils.getWindow().webContents.executeJavaScript('MusicKitInterop.playPause()')
|
||||
}
|
||||
else if (arg.includes('nextitem')) {
|
||||
//language=JS
|
||||
utils.getWindow().webContents.executeJavaScript('app.mk.skipToNextItem()')
|
||||
}
|
||||
// Play
|
||||
else if (arg.includes('/play/')) { //Steer away from protocol:// specific conditionals
|
||||
const playParam = arg.split('/play/')[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue