Add protocol for playpause and nextitem (#1329)
This commit is contained in:
parent
5920e82a30
commit
6370ef3003
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)
|
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
|
// Play
|
||||||
else if (arg.includes('/play/')) { //Steer away from protocol:// specific conditionals
|
else if (arg.includes('/play/')) { //Steer away from protocol:// specific conditionals
|
||||||
const playParam = arg.split('/play/')[1]
|
const playParam = arg.split('/play/')[1]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue