[MainWindow] Default unknown hash to custom instead of blank
This commit is contained in:
parent
207fd33bce
commit
9bff6f9bfd
1 changed files with 2 additions and 2 deletions
4
src/bootstrap.js
vendored
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…
Reference in a new issue