Skip to content

Commit 9442d1c

Browse files
committed
Fixed: Storage: Return promise from set()
1 parent 1233e90 commit 9442d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function _set(newValues: Stored, srcInfo?: IPCNodeInfo): Promise<void> {
8585
// Or send them to background
8686
else {
8787
const srcInfo = { type: Info.instanceType, winId: Windows.id, tabId: Info.currentTabId }
88-
IPC.bg('saveInLocalStorage', newValues, srcInfo)
88+
return IPC.bg('saveInLocalStorage', newValues, srcInfo)
8989
}
9090
}
9191
async function set(newValues: Stored, delay?: number): Promise<void> {

0 commit comments

Comments
 (0)