1
0
Fork 0
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:
kkapsner 2017-12-15 00:48:00 +01:00
parent 3fcc5774c2
commit a5f3e78292
3 changed files with 7 additions and 9 deletions

View file

@ -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){