Fix indentation for PR.
This commit is contained in:
parent
2efb4a672e
commit
5914cefb8f
1 changed files with 8 additions and 8 deletions
|
@ -143,14 +143,14 @@ const assignManager = {
|
||||||
// in a new tab will not be subject to this protection.
|
// in a new tab will not be subject to this protection.
|
||||||
// To prevent this, explicitly allow requests that don't change host to go through.
|
// To prevent this, explicitly allow requests that don't change host to go through.
|
||||||
if(options.originUrl) {
|
if(options.originUrl) {
|
||||||
const originUrl = new window.URL(options.originUrl);
|
const originUrl = new window.URL(options.originUrl);
|
||||||
const newUrl = new window.URL(options.url);
|
const newUrl = new window.URL(options.url);
|
||||||
if(originUrl.hostname === newUrl.hostname) {
|
if(originUrl.hostname === newUrl.hostname) {
|
||||||
// in fact, set this URL-tab combo exempted so future manual browsing
|
// in fact, set this URL-tab combo exempted so future manual browsing
|
||||||
// within it does also not trigger new prompts
|
// within it does also not trigger new prompts
|
||||||
this.storageArea.setExempted(options.url, options.tabId);
|
this.storageArea.setExempted(options.url, options.tabId);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const userContextId = this.getUserContextIdFromCookieStore(tab);
|
const userContextId = this.getUserContextIdFromCookieStore(tab);
|
||||||
|
|
Loading…
Add table
Reference in a new issue