[Splash > Backend] Minor source tweak

pull/24/head
Oj 2 years ago
parent 07f2bac29b
commit a0e288821e

@ -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…
Cancel
Save