[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(core): can't enter presentation again in share page (toeverything…
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed Jun 19, 2024
1 parent 98e3538 commit f9903fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ export const PresentButton = () => {
const edgelessPage = editorHost?.querySelector('affine-edgeless-root');
if (!edgelessPage) return;

edgelessPage.slots.edgelessToolUpdated.on(() => {
return edgelessPage.slots.edgelessToolUpdated.on(() => {
setIsPresent(edgelessPage.edgelessTool.type === 'frameNavigator');
});

return () => {
edgelessPage.slots.edgelessToolUpdated.dispose();
};
}).dispose;
}, [editor?.host, isPresent]);

return (
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/electron/renderer/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const desktopWhiteList = [
'/open-app/url',
'/upgrade-success',
'/ai-upgrade-success',
'/share',
];
if (
!environment.isDesktop &&
Expand Down

0 comments on commit f9903fd

Please sign in to comment.