summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-05 06:04:28 -0600
committerAdam <[email protected]>2026-02-05 06:04:28 -0600
commit7555742bf096ec27d2847797daeb79725f6d5b9e (patch)
treedee3133b610c8b30bc039860758251b9d954574e /packages/desktop/src
parentfa20bc296b134d17840e993656e175e11ee15b3d (diff)
downloadopencode-7555742bf096ec27d2847797daeb79725f6d5b9e.tar.gz
opencode-7555742bf096ec27d2847797daeb79725f6d5b9e.zip
chore: cleanup
Diffstat (limited to 'packages/desktop/src')
-rw-r--r--packages/desktop/src/index.tsx11
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index 9ef680ed8..b54e1f79f 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -30,17 +30,6 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
void initI18n()
-// Floating UI can call getComputedStyle with non-elements (e.g., null refs, virtual elements).
-// This happens on all platforms (WebView2 on Windows, WKWebView on macOS), not just Windows.
-const originalGetComputedStyle = window.getComputedStyle
-window.getComputedStyle = ((elt: Element, pseudoElt?: string | null) => {
- if (!(elt instanceof Element)) {
- // Fall back to a safe element when a non-element is passed.
- return originalGetComputedStyle(document.documentElement, pseudoElt ?? undefined)
- }
- return originalGetComputedStyle(elt, pseudoElt ?? undefined)
-}) as typeof window.getComputedStyle
-
let update: Update | null = null
const deepLinkEvent = "opencode:deep-link"