[MainWindow] Default unknown hash to custom instead of blank

main
Oj 2 years ago
parent 207fd33bce
commit 9bff6f9bfd

4
src/bootstrap.js vendored

@ -82,7 +82,7 @@ const startCore = () => {
let injectJs = readFileSync(join(__dirname, 'mainWindowInject.js'), 'utf8');
const [ version1, version2 ] = oaVersion.split('-'); // Split via -
injectJs = injectJs.replace('<version_1>', version1[0].toUpperCase() + version1.substring(1).toLowerCase()).replace('<version_2>', version2 || '');
injectJs = injectJs.replace('<version_1>', version1[0].toUpperCase() + version1.substring(1).toLowerCase()).replace('<version_2>', version2 || 'custom');
bw.webContents.executeJavaScript(injectJs);
});
@ -141,4 +141,4 @@ getInstallPath: ${paths.getInstallPath()}`);
} else {
app.once('ready', startUpdate);
}
};
};

Loading…
Cancel
Save