1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

fix: options page crush on cloud storage disabling

This commit is contained in:
2025-05-08 09:05:53 +03:00
parent 8f4cd4198a
commit dfcafae2b1
2 changed files with 3 additions and 1 deletions
@@ -1,3 +1,4 @@
import { sendMessage } from "@/utils/messaging";
import { collectionStorage } from "./collectionStorage";
import saveCollectionsToCloud from "./saveCollectionsToCloud";
@@ -14,6 +15,6 @@ export default async function setCloudStorage(enable: boolean): Promise<void>
{
await collectionStorage.disableCloud.setValue(true);
await saveCollectionsToCloud([], 0);
browser.runtime.reload();
await sendMessage("refreshCollections", undefined);
}
}