Skip to content

Commit

Permalink
fix: loadFile options hash
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Aug 1, 2024
1 parent d9168c0 commit b41fa66
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,19 @@ export function createWindow(
} else {
const openPath = path.resolve(
__dirname,
`../renderer/index.html${options?.extraPath || ""}`,
"../renderer/index.html",
)
window.loadFile(
openPath,
{
hash: options?.extraPath,
},
)
logger.log(
openPath,
{
hash: options?.extraPath,
},
)
}

Expand Down Expand Up @@ -235,7 +241,7 @@ export const createSettingWindow = () => {
return
}
const window = createWindow({
extraPath: "/#settings",
extraPath: "#settings",
width: 700,
height: 600,
resizable: false,
Expand Down

0 comments on commit b41fa66

Please sign in to comment.