fix: fixed an issue with the initial launch in certain regions, such as South Korea

This commit is contained in:
JellyBrick
2023-10-11 23:09:05 +09:00
parent 9187f1e240
commit 572a023aaa

View File

@ -393,7 +393,7 @@ app.once('browser-window-created', (event, win) => {
console.log(log);
}
if (!(config.plugins.isEnabled('in-app-menu') && errorCode === -3)) { // -3 is a false positive with in-app-menu
if (errorCode !== -3) { // -3 is a false positive
win.webContents.send('log', log);
win.webContents.loadFile(path.join(__dirname, 'error.html'));
}