mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
json extension prop is an array (#6866)
This commit is contained in:
@@ -142,9 +142,11 @@ export class Vault {
|
||||
);
|
||||
if (response.status === HttpStatusCode.Ok) {
|
||||
const json = await response.json();
|
||||
const k1 = json?.extensions?.LastPassK1 as string;
|
||||
if (k1 != null) {
|
||||
return Utils.fromB64ToArray(k1);
|
||||
if (json?.extensions != null && json.extensions.length > 0) {
|
||||
const k1 = json.extensions[0].LastPassK1 as string;
|
||||
if (k1 != null) {
|
||||
return Utils.fromB64ToArray(k1);
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user