From a6cdcc8f5befd9328c933800c678e4779780858f Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 12 Dec 2021 11:45:25 +0000 Subject: [PATCH] [Bootstrap] Add env variable to halt starting after splash for testing --- src/bootstrap.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bootstrap.js b/src/bootstrap.js index 284c8ec..91582c4 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -54,6 +54,11 @@ const startCore = () => { const startUpdate = () => { appUpdater.update(false, () => { + if (process.env.OPENASAR_NOSTART) { + log('Bootstrap', 'Found nostart variable, halting bootstrap'); + return; + } + startCore(); }, () => { log('Bootstrap', 'Setting main window visible');