exempting always open in functionality for non-standard ports
This commit is contained in:
parent
cc42beeb5a
commit
42b0312790
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue