mirror of
https://github.com/bitwarden/jslib
synced 2025-12-17 00:33:17 +00:00
Convert Sets to Arrays before saving locally (#383)
This commit is contained in:
@@ -39,6 +39,9 @@ export class ElectronStorageService implements StorageService {
|
||||
}
|
||||
|
||||
save(key: string, obj: any): Promise<any> {
|
||||
if (obj instanceof Set) {
|
||||
obj = Array.from(obj);
|
||||
}
|
||||
this.store.set(key, obj);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user