Skip to content

Commit fcde3eb

Browse files
authored
registerProtocol周りがビルド済みアプリが起動しないバグを修正 (#1459)
1 parent 44a8a19 commit fcde3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ async function createWindow() {
510510
// ソフトウェア起動時はプロトコルを app にする
511511
if (process.env.VITE_DEV_SERVER_URL == undefined) {
512512
protocol.handle("app", (request) => {
513-
const filePath = new URL(request.url).pathname;
513+
const filePath = path.join(__dirname, new URL(request.url).pathname);
514514
return net.fetch(`file://${filePath}`);
515515
});
516516
}

0 commit comments

Comments
 (0)