From 437c59f0874fd1bf73d4f2717087c40d313348e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 13 Nov 2019 17:05:32 +0100 Subject: [PATCH] electron-main: Check for seshat existence instead of erroring out. --- electron_app/src/electron-main.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index 1ab8bb8d..3bb95b1d 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -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:");