riot-desktop open SSO in browser so user doesn't have to auth twice

This commit is contained in:
Michael Telatynski
2020-03-02 15:04:51 +00:00
parent 40eec12b86
commit abe074e43e
4 changed files with 28 additions and 14 deletions

View File

@@ -35,6 +35,7 @@ const tray = require('./tray');
const vectorMenu = require('./vectormenu');
const webContentsHandler = require('./webcontents-handler');
const updater = require('./updater');
const protocolInit = require('./protocol');
const windowStateKeeper = require('electron-window-state');
const Store = require('electron-store');
@@ -511,6 +512,9 @@ if (!gotLock) {
app.exit();
}
// do this after we know we are the primary instance of the app
protocolInit();
// Register the scheme the app is served from as 'standard'
// which allows things like relative URLs and IndexedDB to
// work.