fix clientOnly not starting up after async startup added in 2.23 (#3154)

Fixes #3151 

app.whenReady() was removed when async changes made, needed for
clientonly in electron.js
This commit is contained in:
sam detweiler
2023-07-16 16:04:58 -05:00
committed by GitHub
parent 948910d304
commit 1bd146f52e
3 changed files with 9 additions and 0 deletions

View File

@@ -168,6 +168,13 @@ app.on("certificate-error", (event, webContents, url, error, certificate, callba
callback(true);
});
if (process.env.clientonly) {
app.whenReady().then(() => {
Log.log("Launching client viewer application.");
createWindow();
});
}
// Start the core application if server is run on localhost
// This starts all node helpers and starts the webserver.
if (["localhost", "127.0.0.1", "::1", "::ffff:127.0.0.1", undefined].includes(config.address)) {