diff options
Diffstat (limited to 'js/traffic.js')
-rw-r--r-- | js/traffic.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/traffic.js b/js/traffic.js index b9efa4b..80af782 100644 --- a/js/traffic.js +++ b/js/traffic.js @@ -366,12 +366,12 @@ var onHeadersReceived = function(details) { /******************************************************************************/ var cspNoWorkerInit = function() { - if ( vAPI.webextFlavor === undefined ) { - return "child-src 'none'; frame-src data: blob: *; report-uri about:blank"; + if (ηMatrix.cspNoWorker === undefined) { + ηMatrix.cspNoWorker = "worker-src 'none'; " + +"frame-src data: blob: *; " + +"report-uri about:blank"; } - ηMatrix.cspNoWorker = /^Mozilla-Firefox-5[67]/.test(vAPI.webextFlavor) ? - "child-src 'none'; frame-src data: blob: *; report-uri about:blank" : - "worker-src 'none'; report-uri about:blank" ; + return ηMatrix.cspNoWorker; }; |