mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
electron-main: Check for seshat existence instead of erroring out.
This commit is contained in:
parent
449eca6fb4
commit
437c59f087
1 changed files with 9 additions and 2 deletions
|
@ -39,8 +39,15 @@ const { migrateFromOldOrigin } = require('./originMigrator');
|
|||
|
||||
const windowStateKeeper = require('electron-window-state');
|
||||
const Store = require('electron-store');
|
||||
const Seshat = require('seshat-node');
|
||||
const makeDir = require('make-dir');
|
||||
|
||||
let Seshat = null;
|
||||
let makeDir = null;
|
||||
|
||||
try {
|
||||
Seshat = require('seshat-node');
|
||||
makeDir = require('make-dir');
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
if (argv["help"]) {
|
||||
console.log("Options:");
|
||||
|
|
Loading…
Reference in a new issue