From 52b3563656314fea12720cc487b6267245b299ac Mon Sep 17 00:00:00 2001 From: Thomas Rientjes Date: Mon, 10 Sep 2018 22:14:54 +0200 Subject: [PATCH] Temporarily disable injections on Beta and Nightly --- core/interceptor.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/interceptor.js b/core/interceptor.js index 74df08f..86d5f58 100644 --- a/core/interceptor.js +++ b/core/interceptor.js @@ -42,6 +42,10 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) { tabDomain = Address.EXAMPLE; } + if (interceptor.browserVersion === '63' || interceptor.browserVersion === '64') { + return interceptor._handleMissingCandidate(requestDetails.url); + } + if (requestDetails.type === WebRequestType.XHR) { if (tabDomain !== interceptor.xhrTestDomain) { @@ -177,6 +181,12 @@ chrome.storage.local.get(interceptor.relatedSettings, function (items) { interceptor.blockMissing = items.blockMissing || false; }); +chrome.runtime.getBrowserInfo(function (browserInformation) { + + let browserVersion = browserInformation.version.substring(0, 2); + interceptor.browserVersion = browserVersion; +}); + /** * Event Handlers */ -- GitLab