mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
handle blocked domains initializing with null value
This commit is contained in:
@@ -29,9 +29,11 @@ export class BrowserScriptInjectorService extends ScriptInjectorService {
|
|||||||
|
|
||||||
this.domainSettingsService.blockedInteractionsUris$
|
this.domainSettingsService.blockedInteractionsUris$
|
||||||
.pipe(takeUntil(this.destroy$))
|
.pipe(takeUntil(this.destroy$))
|
||||||
.subscribe(
|
.subscribe((neverDomains: NeverDomains) => {
|
||||||
(neverDomains: NeverDomains) => (this.blockedDomains = new Set(Object.keys(neverDomains))),
|
if (neverDomains) {
|
||||||
);
|
this.blockedDomains = new Set(Object.keys(neverDomains));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user