From 3e160e4b4aedaeee34a26eee9a0effbb1a90e09a Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 3 Aug 2020 13:28:52 +0200 Subject: [PATCH] Fixed: Block Google Fonts if enabled --- core/interceptor.js | 4 ++-- pages/updates/updates.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/interceptor.js b/core/interceptor.js index 803c6bc5..83669dec 100644 --- a/core/interceptor.js +++ b/core/interceptor.js @@ -37,9 +37,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) { // Possible URLs of Google Fonts: https://fonts.googleapis.com/css // https://fonts.googleapis.com/css2 if (requestDetails.url.startsWith('https://fonts.googleapis.com/css')) { - if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) { + if(interceptor.blockGoogleFonts === true || interceptor.blockMissing === true) { return { - 'cancel': false + 'cancel': true }; } } diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 2008e44b..9687cb5b 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -25,6 +25,7 @@