Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Temporarily disable injections on Beta and Nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Synzvato committed Sep 10, 2018
1 parent cbfeead commit 52b3563
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 52b3563

Please sign in to comment.