Skip to content
Snippets Groups Projects
Verified Commit ba366ee4 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Optimize popup domain normalization logic

parent dadf7430
Branches pale-moon
No related tags found
No related merge requests found
......@@ -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();
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment