diff options
| author | Brendan Allan <[email protected]> | 2025-12-09 19:13:51 +0800 |
|---|---|---|
| committer | Brendan Allan <[email protected]> | 2025-12-09 19:13:51 +0800 |
| commit | 0a47a3cea0256642bb4cb38112669cdace7732e5 (patch) | |
| tree | ee7a9e73568a6708a5b7e0d2d0ac62dd8937e3d4 /packages/tauri/src | |
| parent | 306d57fcde02b34cb486a3d539421b6877f04167 (diff) | |
| download | opencode-0a47a3cea0256642bb4cb38112669cdace7732e5.tar.gz opencode-0a47a3cea0256642bb4cb38112669cdace7732e5.zip | |
fix: use ts project references for desktop and tauri
Diffstat (limited to 'packages/tauri/src')
| -rw-r--r-- | packages/tauri/src/index.tsx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packages/tauri/src/index.tsx b/packages/tauri/src/index.tsx index 4e23241ec..495cff8fc 100644 --- a/packages/tauri/src/index.tsx +++ b/packages/tauri/src/index.tsx @@ -13,10 +13,17 @@ if (import.meta.env.DEV && !(root instanceof HTMLElement)) { const platform: Platform = {} -render(() => { - onMount(() => { - if (window.__OPENCODE__.updaterEnabled) runUpdater() - }) +declare global { + interface Window { + __OPENCODE__?: { updaterEnabled?: boolean } + } +} + +render( + () => { + onMount(() => { + if(window.__OPENCODE__?.updaterEnabled) runUpdater(); + }); return ( <PlatformProvider value={platform}> |
