mirror of
https://github.com/infinilabs/coco-app.git
synced 2026-08-29 10:09:30 +02:00
fix: web page unmount event (#645)
* fix: web page unmont event * docs: update notes
This commit is contained in:
@@ -15,10 +15,6 @@ function MainApp() {
|
||||
setIsTauri(true);
|
||||
}, []);
|
||||
|
||||
const hideCoco = useCallback(() => {
|
||||
return platformAdapter.hideWindow();
|
||||
}, []);
|
||||
|
||||
useSyncStore();
|
||||
|
||||
const snapshotUpdate = useAppearanceStore((state) => state.snapshotUpdate);
|
||||
@@ -41,11 +37,7 @@ function MainApp() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<SearchChat
|
||||
isTauri={true}
|
||||
hideCoco={hideCoco}
|
||||
hasModules={["search", "chat"]}
|
||||
/>
|
||||
<SearchChat isTauri={true} hasModules={["search", "chat"]} />
|
||||
<UpdateApp checkUpdate={checkUpdate} relaunchApp={relaunchApp} />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user