summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2019-10-31 23:51:50 +0100
committerhackademix2019-10-31 23:51:50 +0100
commit25fd1727b64635b23207446b671baa59ccfa55dc (patch)
tree3083b8e67b0ab2372ca69332a15b65d741f464ad
parentd6465fead93efaeda9873d3fab1dad5281c6de03 (diff)
downloadnoscript-25fd1727b64635b23207446b671baa59ccfa55dc.tar.gz
noscript-25fd1727b64635b23207446b671baa59ccfa55dc.tar.xz
noscript-25fd1727b64635b23207446b671baa59ccfa55dc.zip
Make tests not to run automatically on dev mode startup anymore.
-rw-r--r--src/bg/main.js10
1 files changed, 5 insertions, 5 deletions
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", {