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

Commit

Permalink
Refactor existing codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Synzvato committed Jun 25, 2018
1 parent 36f9884 commit 7b911c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const WebRequest = {
};

const WebRequestType = {
'MAIN_FRAME': 'main_frame',
'XHR': 'xmlhttprequest'
};

Expand Down
3 changes: 1 addition & 2 deletions core/state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ stateManager._createTab = function (tab) {
};

requestFilters = {

'tabId': tabIdentifier,
'urls': stateManager.validHosts
};
Expand Down Expand Up @@ -226,7 +225,7 @@ chrome.webRequest.onBeforeRequest.addListener(function (requestDetails) {
};
}

}, {'types': ['main_frame'], 'urls': [Address.ANY]});
}, {'types': [WebRequestType.MAIN_FRAME], 'urls': [Address.ANY]});

chrome.webNavigation.onCommitted.addListener(stateManager._updateTab, {
'url': [{'urlContains': ':'}]
Expand Down

0 comments on commit 7b911c6

Please sign in to comment.