From 2f86a201723a380b67e142b79f535326db900dd0 Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 16 Feb 2021 16:43:08 +0100 Subject: [PATCH] Fixed typo in version checked on noscript capability update. --- src/bg/LifeCycle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bg/LifeCycle.js b/src/bg/LifeCycle.js index 9e1a628..6419efa 100644 --- a/src/bg/LifeCycle.js +++ b/src/bg/LifeCycle.js @@ -241,7 +241,7 @@ var LifeCycle = (() => { ns.policy.TRUSTED.capabilities.add("ping"); await ns.savePolicy(); } - if (Ver.is(previousVersion, "<", "11.2.rc4")) { + if (Ver.is(previousVersion, "<=", "11.2.1")) { log(`Upgrading from ${previousVersion}: configure the "noscript" capability.`); await ns.initializing; let {DEFAULT, TRUSTED, UNTRUSTED} = ns.policy;