From eb519b2ec151294d762b90db48ec08e8930c566d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 2 Jun 2021 07:07:10 -0400 Subject: [PATCH] Ensure version changes are persisted at launch --- src/js/start.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/start.js b/src/js/start.js index 63285e588..c98004383 100644 --- a/src/js/start.js +++ b/src/js/start.js @@ -111,13 +111,13 @@ const onVersionReady = function(lastVersion) { µb.redirectEngine.invalidateResourcesSelfie(); const lastVersionInt = vAPI.app.intFromVersion(lastVersion); - if ( lastVersionInt === 0 ) { return; } // https://github.com/LiCybora/NanoDefenderFirefox/issues/196 // Toggle on the blocking of CSP reports by default for Firefox. if ( - vAPI.webextFlavor.soup.has('firefox') && - lastVersionInt <= 1031003011 + lastVersionInt !== 0 && + lastVersionInt <= 1031003011 && + vAPI.webextFlavor.soup.has('firefox') ) { µb.sessionSwitches.toggle('no-csp-reports', '*', 1); µb.permanentSwitches.toggle('no-csp-reports', '*', 1);