patch cider connect renderer issues

This commit is contained in:
Core 2022-06-15 22:27:27 +01:00
parent 3e3c38a25f
commit 69c460ad03
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 5 additions and 2 deletions

View file

@ -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`