backport riot-desktop implementation into riot-web

This commit is contained in:
Michael Telatynski 2020-03-02 20:16:41 +00:00
parent 09ed0e781a
commit bb6afd7c30
4 changed files with 66 additions and 3 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');
@ -427,6 +428,9 @@ if (!gotLock) {
app.exit();
}
// do this after we know we are the primary instance of the app
protocolInit();
const launcher = new AutoLaunch({
name: vectorConfig.brand || 'Riot',
isHidden: true,