mirror of
https://github.com/bitwarden/browser
synced 2024-12-25 09:32:06 +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