fix prod bug
Some checks failed
Build Electron App / build (macos-latest, build:mac) (push) Has been cancelled
Build Electron App / build (ubuntu-latest, build:linux) (push) Has been cancelled
Build Electron App / build (windows-latest, build:win) (push) Has been cancelled

This commit is contained in:
nicwands
2026-03-03 20:58:31 -05:00
parent 73349444d6
commit e48779e8e0
5 changed files with 34 additions and 30 deletions

View File

@@ -56,11 +56,11 @@ function createNoteWindow(noteId) {
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
noteWindow.loadURL(
`${process.env['ELECTRON_RENDERER_URL']}/note/${noteId}`,
`${process.env['ELECTRON_RENDERER_URL']}/#/note/${noteId}`,
)
} else {
mainWindow.loadFile(rendererPath, {
path: `/notes/${noteId}`,
noteWindow.loadFile(rendererPath, {
hash: `/note/${noteId}`,
})
}
}