mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Do not forceLoad depending on Firefox version
This commit is contained in:
parent
3fcc5774c2
commit
a5f3e78292
3 changed files with 7 additions and 9 deletions
|
@ -65,12 +65,7 @@
|
|||
scope.intercept({subject: window}, apis);
|
||||
}
|
||||
else {
|
||||
let firefoxVersion = navigator.userAgent.match(/Firefox\/([\d.]+)$/);
|
||||
let forceLoad = true;
|
||||
if (firefoxVersion){
|
||||
let versionParts = firefoxVersion[1].split(".");
|
||||
forceLoad = parseInt(versionParts[0], 10) >= 57;
|
||||
}
|
||||
let forceLoad = false;
|
||||
let preIntercepted = false;
|
||||
let intercepted = false;
|
||||
const forEachFunction = function(callback){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue