patch cider connect renderer issues
This commit is contained in:
parent
3e3c38a25f
commit
69c460ad03
2 changed files with 5 additions and 2 deletions
|
@ -614,8 +614,7 @@ export class BrowserWindow {
|
|||
//region Connect Integration
|
||||
app.get("/connect/set-cc-user/:data", (req, res) => {
|
||||
//utils.getStoreValue('connectUser', JSON.parse()) // [Connect] Save user in store
|
||||
utils.setStoreValue('connectUser', JSON.parse(req.params.data))
|
||||
utils.getWindow().reload()
|
||||
utils.getWindow().webContents.send('setStoreValue', 'connectUser', JSON.parse(req.params.data))
|
||||
res.redirect(`https://connect.cidercollective.dev/linked.html`)
|
||||
});
|
||||
// [Connect] Set auth URL in store for `shell.openExternal`
|
||||
|
|
|
@ -835,6 +835,10 @@ const app = new Vue({
|
|||
app.cfg.lastfm.enabled = true
|
||||
})
|
||||
|
||||
ipcRenderer.on('setStoreValue', (e, key, value) => {
|
||||
app.cfg[key] = value
|
||||
})
|
||||
|
||||
ipcRenderer.on('theme-update', async (event, arg) => {
|
||||
await less.refresh(true, true, true)
|
||||
self.setTheme(self.cfg.visual.theme, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue