Skip to content

Commit 54020b4

Browse files
committed
fix(stage-tamagotchi): render url not found
1 parent a467c95 commit 54020b4

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

apps/stage-tamagotchi/src/main/windows/inlay/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function setupInlayWindow() {
6363
return { action: 'deny' }
6464
})
6565

66-
await load(window, withHashRoute(baseUrl(resolve(__dirname, '..', '..', 'renderer')), '/inlay'))
66+
await load(window, withHashRoute(baseUrl(resolve(__dirname, '..', '..', '..', 'renderer')), '/inlay'))
6767

6868
return window
6969
}

apps/stage-tamagotchi/src/main/windows/main/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import { transparentWindowConfig } from '../shared'
1414
import { createConfig } from '../shared/persistence'
1515
import { setupAppInvokeHandlers } from './rpc/index.electron'
1616

17-
const __dirname = dirname(fileURLToPath(import.meta.url))
18-
1917
interface AppConfig {
2018
windows?: Array<Pick<BrowserWindowConstructorOptions, 'title' | 'x' | 'y' | 'width' | 'height'> & { tag: string }>
2119
}
@@ -92,7 +90,7 @@ export async function setupMainWindow() {
9290
return { action: 'deny' }
9391
})
9492

95-
await load(window, baseUrl(resolve(__dirname, '..', '..', 'renderer')))
93+
await load(window, baseUrl(resolve(import.meta.dirname, '..', '..', '..', 'renderer')))
9694

9795
setupAppInvokeHandlers(window)
9896

apps/stage-tamagotchi/src/main/windows/settings/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function setupSettingsWindow() {
2828
return { action: 'deny' }
2929
})
3030

31-
await load(window, withHashRoute(baseUrl(resolve(__dirname, '..', '..', 'renderer')), '/settings'))
31+
await load(window, withHashRoute(baseUrl(resolve(__dirname, '..', '..', '..', 'renderer')), '/settings'))
3232

3333
return window
3434
}

0 commit comments

Comments
 (0)