mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-06 00:48:08 +02:00
Prevent malformed URLs from loading current tab
This commit is contained in:
parent
d308245237
commit
0d3b32a10d
@ -333,9 +333,12 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
this.settingsService.getEquivalentDomains().then((eqDomains: any[][]) => {
|
||||
let matches: any[] = [];
|
||||
eqDomains.forEach((eqDomain) => {
|
||||
if (eqDomain.length && eqDomain.indexOf(domain) >= 0) {
|
||||
matches = matches.concat(eqDomain);
|
||||
try {
|
||||
if (eqDomain.length && eqDomain.indexOf(domain) >= 0) {
|
||||
matches = matches.concat(eqDomain);
|
||||
}
|
||||
}
|
||||
catch {}
|
||||
});
|
||||
|
||||
if (!matches.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user