Skip to content

Commit

Permalink
exempting always open in functionality for non-standard ports
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivangiKakkar committed Jan 18, 2019
1 parent cc42bee commit 42b0312
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/background/assignManager.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 42b0312

Please sign in to comment.