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

This commit is contained in:
Damir Jelić 2019-11-13 17:05:32 +01:00
parent 449eca6fb4
commit 437c59f087

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