ui: add channel prefix if non-nightly

polynt polynt-cirelease
CanadaHonk 2 years ago
parent 8dc49cb816
commit 6328f3c293

2
src/bootstrap.js vendored

@ -40,7 +40,7 @@ const startCore = () => {
const [ channel, hash ] = oaVersion.split('-'); // Split via -
bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8')
.replaceAll('<hash>', hash || channel)
.replaceAll('<hash>', channel === 'nightly' ? hash : (channel + ' ' + hash))
.replaceAll('<notrack>', oaConfig.noTrack)
.replace('<css>', (oaConfig.css ?? '').replaceAll('\\', '\\\\').replaceAll('`', '\\`')));

Loading…
Cancel
Save