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:
@@ -68,6 +68,7 @@ export default defineBackground(() =>
|
|||||||
icon: graphicsCache[data.url]?.icon
|
icon: graphicsCache[data.url]?.icon
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
onMessage("refreshCollections", () => {});
|
||||||
|
|
||||||
setupTabCaputre();
|
setupTabCaputre();
|
||||||
async function setupTabCaputre(): Promise<void>
|
async function setupTabCaputre(): Promise<void>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { sendMessage } from "@/utils/messaging";
|
||||||
import { collectionStorage } from "./collectionStorage";
|
import { collectionStorage } from "./collectionStorage";
|
||||||
import saveCollectionsToCloud from "./saveCollectionsToCloud";
|
import saveCollectionsToCloud from "./saveCollectionsToCloud";
|
||||||
|
|
||||||
@@ -14,6 +15,6 @@ export default async function setCloudStorage(enable: boolean): Promise<void>
|
|||||||
{
|
{
|
||||||
await collectionStorage.disableCloud.setValue(true);
|
await collectionStorage.disableCloud.setValue(true);
|
||||||
await saveCollectionsToCloud([], 0);
|
await saveCollectionsToCloud([], 0);
|
||||||
browser.runtime.reload();
|
await sendMessage("refreshCollections", undefined);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user