Raymond Hill
7 years ago
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with
4 additions and
1 deletions
-
src/js/background.js
-
src/js/storage.js
-
src/js/traffic.js
|
@ -101,6 +101,7 @@ var requestStatsFactory = function() { |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
var rawSettingsDefault = { |
|
|
var rawSettingsDefault = { |
|
|
|
|
|
disableCSPReportInjection: false, |
|
|
placeholderBackground: |
|
|
placeholderBackground: |
|
|
[ |
|
|
[ |
|
|
'url("data:image/png;base64,', |
|
|
'url("data:image/png;base64,', |
|
|
|
@ -126,6 +126,8 @@ |
|
|
value = true; |
|
|
value = true; |
|
|
} else if ( value === 'false' ) { |
|
|
} else if ( value === 'false' ) { |
|
|
value = false; |
|
|
value = false; |
|
|
|
|
|
} else { |
|
|
|
|
|
value = this.rawSettingsDefault[name]; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 'string': |
|
|
case 'string': |
|
|
|
@ -322,7 +322,7 @@ var onHeadersReceived = function(details) { |
|
|
|
|
|
|
|
|
if ( µm.tMatrix.evaluateSwitchZ('no-workers', rootHostname) ) { |
|
|
if ( µm.tMatrix.evaluateSwitchZ('no-workers', rootHostname) ) { |
|
|
csp.push(µm.cspNoWorker); |
|
|
csp.push(µm.cspNoWorker); |
|
|
} else { |
|
|
|
|
|
|
|
|
} else if ( µm.rawSettings.disableCSPReportInjection === false ) { |
|
|
cspReport.push(µm.cspNoWorker); |
|
|
cspReport.push(µm.cspNoWorker); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|