Verified Commit 52b35636 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Temporarily disable injections on Beta and Nightly

parent cbfeead5
......@@ -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
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment