Skip to content

Commit 10533e2

Browse files
committed
fix: error.html path
1 parent 6189e67 commit 10533e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
File renamed without changes.

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ import {
5353
import { LoggerPrefix } from '@/utils';
5454
import { loadI18n, setLanguage, t } from '@/i18n';
5555

56+
import ErrorHtmlAsset from '@assets/error.html?asset';
57+
5658
import type { PluginConfig } from '@/types/plugins';
5759

5860
if (!is.macOS()) {
@@ -505,7 +507,7 @@ app.once('browser-window-created', (_event, win) => {
505507
if (errorCode !== -3) {
506508
// -3 is a false positive
507509
win.webContents.send('log', log);
508-
win.webContents.loadFile(path.join(__dirname, 'error.html'));
510+
win.webContents.loadFile(ErrorHtmlAsset);
509511
}
510512
},
511513
);

0 commit comments

Comments
 (0)