exempting always open in functionality for non-standard ports
This commit is contained in:
@@ -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@@_";
|
||||||
|
if (url.port === "80" || url.port === "443") {
|
||||||
return `${storagePrefix}${url.hostname}`;
|
return `${storagePrefix}${url.hostname}`;
|
||||||
|
} else {
|
||||||
|
return `${storagePrefix}${url.hostname}${url.port}`;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setExempted(pageUrl, tabId) {
|
setExempted(pageUrl, tabId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user