Skip to content
Merged
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
13 changes: 0 additions & 13 deletions apps/studio/src/routes/editor/WebviewArea/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ const Frame = observer(
const state = editorEngine.webviews.computeState(body);
editorEngine.webviews.setState(webview, state);

if (state === WebviewState.DOM_ONLOOK_ENABLED) {
setTimeout(() => {
selectFirstElement(webview);
}, 1000);
}

setTimeout(() => {
getDarkMode(webview);
}, 100);
Expand Down Expand Up @@ -384,13 +378,6 @@ const Frame = observer(
);
}

async function selectFirstElement(webview: Electron.WebviewTag) {
const domEl = await webview.executeJavaScript(`window.api?.getFirstOnlookElement()`);
if (domEl) {
editorEngine.elements.click([domEl], webview);
}
}

return (
<div
className="flex flex-col fixed"
Expand Down