1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-03 17:13:14 +00:00

[bug] Save appId as a top level storage item

This commit is contained in:
addison
2021-11-16 09:58:20 -05:00
parent 64ae29cc21
commit c2a6b96fa5

View File

@@ -16,13 +16,13 @@ export class AppIdService implements AppIdServiceAbstraction {
}
private async makeAndGetAppId(key: string) {
const existingId = await this.storageService.get<string>('globals.' + key);
const existingId = await this.storageService.get<string>(key);
if (existingId != null) {
return existingId;
}
const guid = Utils.newGuid();
await this.storageService.save('globals.' + key, guid);
await this.storageService.save(key, guid);
return guid;
}
}