mirror of
https://github.com/bitwarden/browser
synced 2026-01-31 08:43:54 +00:00
check for all available regions when omitting messages from extension
This commit is contained in:
@@ -407,15 +407,14 @@ export default class RuntimeBackground {
|
||||
return false;
|
||||
}
|
||||
|
||||
const env = await firstValueFrom(this.environmentService.environment$);
|
||||
const vaultUrl = env.getWebVaultUrl();
|
||||
const vaultHostname = Utils.getHostname(vaultUrl);
|
||||
const regions = this.environmentService.availableRegions();
|
||||
const vaultHostnames = regions.map((r) => Utils.getHostname(r.urls.webVault)).filter(Boolean);
|
||||
|
||||
if (!vaultHostname) {
|
||||
if (vaultHostnames.length === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return vaultHostname === referrer;
|
||||
return vaultHostnames.includes(referrer);
|
||||
}
|
||||
|
||||
private async autofillPage(tabToAutoFill: chrome.tabs.Tab) {
|
||||
|
||||
Reference in New Issue
Block a user