File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
apps/studio/src/routes/editor/WebviewArea Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -97,12 +97,6 @@ const Frame = observer(
97
97
const state = editorEngine . webviews . computeState ( body ) ;
98
98
editorEngine . webviews . setState ( webview , state ) ;
99
99
100
- if ( state === WebviewState . DOM_ONLOOK_ENABLED ) {
101
- setTimeout ( ( ) => {
102
- selectFirstElement ( webview ) ;
103
- } , 1000 ) ;
104
- }
105
-
106
100
setTimeout ( ( ) => {
107
101
getDarkMode ( webview ) ;
108
102
} , 100 ) ;
@@ -384,13 +378,6 @@ const Frame = observer(
384
378
) ;
385
379
}
386
380
387
- async function selectFirstElement ( webview : Electron . WebviewTag ) {
388
- const domEl = await webview . executeJavaScript ( `window.api?.getFirstOnlookElement()` ) ;
389
- if ( domEl ) {
390
- editorEngine . elements . click ( [ domEl ] , webview ) ;
391
- }
392
- }
393
-
394
381
return (
395
382
< div
396
383
className = "flex flex-col fixed"
You can’t perform that action at this time.
0 commit comments