mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 17:02:27 +02:00
Ensure version changes are persisted at launch
This commit is contained in:
parent
e8bc18e1fe
commit
eb519b2ec1
@ -111,13 +111,13 @@ const onVersionReady = function(lastVersion) {
|
|||||||
µb.redirectEngine.invalidateResourcesSelfie();
|
µb.redirectEngine.invalidateResourcesSelfie();
|
||||||
|
|
||||||
const lastVersionInt = vAPI.app.intFromVersion(lastVersion);
|
const lastVersionInt = vAPI.app.intFromVersion(lastVersion);
|
||||||
if ( lastVersionInt === 0 ) { return; }
|
|
||||||
|
|
||||||
// https://github.com/LiCybora/NanoDefenderFirefox/issues/196
|
// https://github.com/LiCybora/NanoDefenderFirefox/issues/196
|
||||||
// Toggle on the blocking of CSP reports by default for Firefox.
|
// Toggle on the blocking of CSP reports by default for Firefox.
|
||||||
if (
|
if (
|
||||||
vAPI.webextFlavor.soup.has('firefox') &&
|
lastVersionInt !== 0 &&
|
||||||
lastVersionInt <= 1031003011
|
lastVersionInt <= 1031003011 &&
|
||||||
|
vAPI.webextFlavor.soup.has('firefox')
|
||||||
) {
|
) {
|
||||||
µb.sessionSwitches.toggle('no-csp-reports', '*', 1);
|
µb.sessionSwitches.toggle('no-csp-reports', '*', 1);
|
||||||
µb.permanentSwitches.toggle('no-csp-reports', '*', 1);
|
µb.permanentSwitches.toggle('no-csp-reports', '*', 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user