Skip to content

Commit 3e81ce8

Browse files
committed
fix(storage): await set in wrapper to better handler errors
1 parent e7f17b2 commit 3e81ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/browser/browser-storage.utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export const setStorageWrapper: <T>(key: string, value: T, regex?: string | RegE
207207
}
208208

209209
try {
210-
return area.set(key, value);
210+
return await area.set(key, value);
211211
} catch (error) {
212212
if (isQuotaExceededError(error)) {
213213
console.warn('Local storage is full, clearing cache.', { payload, max, inUse, regex, area: area.name });

0 commit comments

Comments
 (0)