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