Skip to content

Commit

Permalink
fix: Actually open dashboard on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Sep 25, 2024
1 parent cb3dd75 commit 471eb24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dotenv.config({ path: configPath });
export const config = {
enableAutoUpdate: (process.env.ENABLE_AUTOUPDATE || 'true') === 'true',
openDashboardOnStartup:
(process.env.OPEN_DASHBOARD_ON_STARTUP || '') === 'true',
(process.env.OPEN_DASHBOARD_ON_STARTUP || 'true') === 'true',
debugLogging: (process.env.DEBUG_LOG || '') === 'true',
calculatePP: (process.env.CALCULATE_PP || '') === 'true',
enableKeyOverlay: (process.env.ENABLE_KEY_OVERLAY || '') === 'true',
Expand Down Expand Up @@ -143,7 +143,7 @@ export const updateConfigFile = () => {
newOptions += 'OPEN_DASHBOARD_ON_STARTUP, ';
fs.appendFileSync(
configPath,
'\nOPEN_DASHBOARD_ON_STARTUP=false',
'\nOPEN_DASHBOARD_ON_STARTUP=true',
'utf8'
);
}
Expand Down

0 comments on commit 471eb24

Please sign in to comment.