electron-main: Check for seshat existence instead of erroring out.

pull/11125/head
Damir Jelić 2019-11-13 17:05:32 +01:00
parent 449eca6fb4
commit 437c59f087
1 changed files with 9 additions and 2 deletions

View File

@ -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:");