fix: use ts project references for desktop and tauri
This commit is contained in:
parent
306d57fcde
commit
0a47a3cea0
6 changed files with 23 additions and 27 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue