Convert Sets to Arrays before saving locally (#383)
This commit is contained in:
parent
3d4ecaeb6a
commit
c8eca37183
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue