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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user