mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix: error.html path
This commit is contained in:
@ -53,6 +53,8 @@ import {
|
|||||||
import { LoggerPrefix } from '@/utils';
|
import { LoggerPrefix } from '@/utils';
|
||||||
import { loadI18n, setLanguage, t } from '@/i18n';
|
import { loadI18n, setLanguage, t } from '@/i18n';
|
||||||
|
|
||||||
|
import ErrorHtmlAsset from '@assets/error.html?asset';
|
||||||
|
|
||||||
import type { PluginConfig } from '@/types/plugins';
|
import type { PluginConfig } from '@/types/plugins';
|
||||||
|
|
||||||
if (!is.macOS()) {
|
if (!is.macOS()) {
|
||||||
@ -505,7 +507,7 @@ app.once('browser-window-created', (_event, win) => {
|
|||||||
if (errorCode !== -3) {
|
if (errorCode !== -3) {
|
||||||
// -3 is a false positive
|
// -3 is a false positive
|
||||||
win.webContents.send('log', log);
|
win.webContents.send('log', log);
|
||||||
win.webContents.loadFile(path.join(__dirname, 'error.html'));
|
win.webContents.loadFile(ErrorHtmlAsset);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user