From 25fd1727b64635b23207446b671baa59ccfa55dc Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 31 Oct 2019 23:51:50 +0100 Subject: Make tests not to run automatically on dev mode startup anymore. --- src/bg/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/bg/main.js') diff --git a/src/bg/main.js b/src/bg/main.js index 8ddfbfd..7df5b2f 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -232,11 +232,7 @@ Commands.install(); this.devMode = (await browser.management.getSelf()).installType === "development"; - if (this.local.debug) { - if (this.devMode) { - include("/test/run.js"); - } - } else { + if (!this.local.debug) { debug = () => {}; // suppress verbosity } }); @@ -251,6 +247,10 @@ log("STOPPED"); }, + test() { + include("/test/run.js"); + }, + async savePolicy() { if (this.policy) { await Storage.set("sync", { -- cgit v1.2.3