mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-19 11:15:21 +01:00
Merge pull request #1878 from bitwarden/fix-set-storage
Convert sets to arrays before saving in storage
This commit is contained in:
commit
c0f7251d77
@ -29,6 +29,10 @@ export default class BrowserStorageService implements StorageService {
|
||||
});
|
||||
}
|
||||
|
||||
if (obj instanceof Set) {
|
||||
obj = Array.from(obj);
|
||||
}
|
||||
|
||||
const keyedObj = { [key]: obj };
|
||||
return new Promise<void>(resolve => {
|
||||
this.chromeStorageApi.set(keyedObj, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user