exempting always open in functionality for non-standard ports

This commit is contained in:
shivangikakkar 2019-01-19 02:02:27 +09:00
parent cc42beeb5a
commit 42b0312790

View file

@ -12,7 +12,11 @@ const assignManager = {
getSiteStoreKey(pageUrl) { getSiteStoreKey(pageUrl) {
const url = new window.URL(pageUrl); const url = new window.URL(pageUrl);
const storagePrefix = "siteContainerMap@@_"; 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) { setExempted(pageUrl, tabId) {