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

View File

@ -1,7 +1,7 @@
{
"name": "CanvasBlocker",
"description": "__MSG_addon_description__",
"version": "0.4.3-Development",
"version": "0.4.3a-Development",
"icons": {
"48": "icons/icon.svg",
"96": "icons/icon.svg"

View File

@ -1,7 +1,10 @@
Version 0.4.3:
Version 0.4.3a:
known issues:
- due to API blocking some web pages may break. Use 0.4.3b instead.
changes:
- hide white, black and ignore list as they can be done with the url specific settings. They are still present and working in the background.
- if settings are not loaded fast enough the loading is not force but all APIs are blocked (only Firefox < 57)
- if settings are not loaded fast enough the loading is not force but all APIs are blocked
new features:
- reset settings