Merge pull request #1327 from ShivangiKakkar/fixes-985

exempting `always open in` functionality for non-standard ports
This commit is contained in:
luke crouch 2019-01-22 20:21:57 -06:00 committed by GitHub
commit 0292d9e3a0

View file

@ -12,7 +12,11 @@ const assignManager = {
getSiteStoreKey(pageUrl) {
const url = new window.URL(pageUrl);
const storagePrefix = "siteContainerMap@@_";
return `${storagePrefix}${url.hostname}`;
if (url.port === "80" || url.port === "443") {
return `${storagePrefix}${url.hostname}`;
} else {
return `${storagePrefix}${url.hostname}${url.port}`;
}
},
setExempted(pageUrl, tabId) {