[Splash > Backend] Minor source tweak
This commit is contained in:
parent
07f2bac29b
commit
a0e288821e
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ const launchSplashWindow = (startMinimized) => {
|
|||
const win = splashWindow;
|
||||
const wc = win.webContents;
|
||||
|
||||
if (process.platform !== 'darwin') win.on('closed', () => { if (!launchedMainWindow) app.quit(); });
|
||||
if (process.platform !== 'darwin') win.on('closed', () => !launchedMainWindow && app.quit());
|
||||
|
||||
wc.once('dom-ready', () => {
|
||||
if (oaConfig.themeSync !== false) wc.insertCSS(JSON.parse(fs.readFileSync(join(paths.getUserData(), 'userDataCache.json'), 'utf8')).openasarSplashCSS);
|
||||
|
|
Loading…
Reference in a new issue