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 = { |
|
|
|
disableCSPReportInjection: false, |
|
|
|
placeholderBackground: |
|
|
|
[ |
|
|
|
'url("data:image/png;base64,', |
|
|
|
|
|
@ -126,6 +126,8 @@ |
|
|
|
value = true; |
|
|
|
} else if ( value === 'false' ) { |
|
|
|
value = false; |
|
|
|
} else { |
|
|
|
value = this.rawSettingsDefault[name]; |
|
|
|
} |
|
|
|
break; |
|
|
|
case 'string': |
|
|
|
|
|
@ -322,7 +322,7 @@ var onHeadersReceived = function(details) { |
|
|
|
|
|
|
|
if ( µm.tMatrix.evaluateSwitchZ('no-workers', rootHostname) ) { |
|
|
|
csp.push(µm.cspNoWorker); |
|
|
|
} else { |
|
|
|
} else if ( µm.rawSettings.disableCSPReportInjection === false ) { |
|
|
|
cspReport.push(µm.cspNoWorker); |
|
|
|
} |
|
|
|
|
|
|
|