test(electron): theme check (#2182)

This commit is contained in:
Himself65
2023-04-28 01:40:44 -05:00
committed by GitHub
parent 73d5b2081a
commit ef0521fa2a
6 changed files with 64 additions and 31 deletions

View File

@@ -8,6 +8,8 @@ import { isMacOS } from '../../utils';
const IS_DEV: boolean =
process.env.NODE_ENV === 'development' && !process.env.CI;
const DEV_TOOL = process.env.DEV_TOOL === 'true';
async function createWindow() {
logger.info('create window');
const mainWindowState = electronWindowState({
@@ -57,7 +59,7 @@ async function createWindow() {
logger.info('main window is ready to show');
if (IS_DEV) {
if (DEV_TOOL) {
browserWindow.webContents.openDevTools();
}
});