Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix offset issue and updated electron #205

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified app/bun.lockb
Binary file not shown.
2 changes: 0 additions & 2 deletions app/electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ function createWindow() {
title: APP_NAME,
icon: path.join(process.env.VITE_PUBLIC, 'favicon.ico'),
titleBarStyle: 'hiddenInset',
show: true,
fullscreenable: true,
webPreferences: {
preload,
webviewTag: true,
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
"css-tree": "^2.3.1",
"electron": "^31.3.1",
"electron": "^32.0.1",
"electron-builder": "^24.13.3",
"eslint": "8.x",
"eslint-config-prettier": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/project/WebviewArea/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const Webview = observer(
if (!webview) {
return;
}

editorEngine.webviews.register(webview);
messageBridge.register(webview, metadata);
setBrowserEventListeners(webview);
Expand Down Expand Up @@ -67,6 +66,7 @@ const Webview = observer(
if (!webview) {
return;
}
webview.setZoomLevel(0);
const body = await editorEngine.dom.getBodyFromWebview(webview);
editorEngine.dom.setDom(metadata.id, body);
setDomFailed(body.children.length === 0);
Expand Down