Verified Commit ba366ee4 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Optimize popup domain normalization logic

parent dadf7430
......@@ -171,11 +171,7 @@ popup._determineTargetTab = function () {
chrome.tabs.query({'active': true, 'currentWindow': true}, function (tabs) {
popup._targetTab = tabs[0];
popup._domain = helpers.extractDomainFromUrl(tabs[0].url);
if (popup._domain !== null) {
popup._domain = helpers.normalizeDomain(popup._domain);
}
popup._domain = helpers.extractDomainFromUrl(tabs[0].url, true);
resolve();
});
......
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