[MainWindow] Don't replace channel as unused

This commit is contained in:
Ducko 2022-05-05 19:59:52 +01:00
parent 029123e0ac
commit ed731b6153

1
src/bootstrap.js vendored
View file

@ -41,7 +41,6 @@ const startCore = () => {
const [ channel, hash ] = oaVersion.split('-'); // Split via - const [ channel, hash ] = oaVersion.split('-'); // Split via -
bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8') bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8')
.replaceAll('<channel>', channel)
.replaceAll('<hash>', hash || 'custom')); .replaceAll('<hash>', hash || 'custom'));
if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js); if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js);