mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 09:54:35 +01:00
use map
This commit is contained in:
parent
aa4f811e9e
commit
1de193eea1
@ -20,10 +20,7 @@ export class LoginData {
|
|||||||
this.totp = data.totp;
|
this.totp = data.totp;
|
||||||
|
|
||||||
if (data.uris) {
|
if (data.uris) {
|
||||||
this.uris = [];
|
this.uris = data.uris.map((u) => new LoginUriData(u));
|
||||||
data.uris.forEach((u) => {
|
|
||||||
this.uris.push(new LoginUriData(u));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user