connect auth works, now for settings sync
This commit is contained in:
parent
4e8a160600
commit
a844903dff
7 changed files with 51 additions and 22 deletions
|
@ -167,9 +167,6 @@ export class AppEvents {
|
|||
utils.getWindow().webContents.send('LastfmAuthenticated', authKey);
|
||||
this.plugin.callPlugin('lastfm', 'authenticate', authKey);
|
||||
}
|
||||
} else if (arg.includes("callback/discord?oauth=")){ // Discord OAuth [Connect]
|
||||
utils.setStoreValue('connectUser', JSON.parse(arg.split("callback/discord?oauth=")[1]));
|
||||
utils.getWindow().webContents.executeJavaScript("$root.appRoute('connect-linked')")
|
||||
}
|
||||
// Play
|
||||
else if (arg.includes('/play/')) { //Steer away from protocol:// specific conditionals
|
||||
|
@ -206,6 +203,8 @@ export class AppEvents {
|
|||
shell.openExternal('https://opencollective.com/ciderapp')
|
||||
} else if (arg.includes('/beep')) {
|
||||
shell.beep()
|
||||
} else {
|
||||
utils.getWindow().webContents.executeJavaScript(`app.appRoute('${arg.split('//')[1]}')`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue