Verified Commit 7b911c6e authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Refactor existing codebase

parent 36f98848
......@@ -64,6 +64,7 @@ const WebRequest = {
};
const WebRequestType = {
'MAIN_FRAME': 'main_frame',
'XHR': 'xmlhttprequest'
};
......
......@@ -105,7 +105,6 @@ stateManager._createTab = function (tab) {
};
requestFilters = {
'tabId': tabIdentifier,
'urls': stateManager.validHosts
};
......@@ -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': ':'}]
......
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