1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +01:00

Convert sets to arrays before saving in storage

This commit is contained in:
Thomas Rittson 2021-06-04 09:38:17 +10:00
parent ef4dddcef3
commit d00d081817

View File

@ -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, () => {