1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 17:49:39 +02:00

Ensure version changes are persisted at launch

This commit is contained in:
Raymond Hill 2021-06-02 07:07:10 -04:00
parent e8bc18e1fe
commit eb519b2ec1
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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);