Skip to content

Commit

Permalink
fix: check if --no-open is true instead of false
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Mar 29, 2024
1 parent ada12ed commit 1bb5fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/resolveOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type Options = Awaited<ReturnType<typeof resolveOptions>>;
export async function resolveOptions(input: Input) {
const statsFile = await resolveStatsFile(input);
const port = await resolvePort(input);
return { statsFile, port, browserOpen: input['--no-open'] !== false };
return { statsFile, port, browserOpen: input['--no-open'] !== true };
}

async function resolveStatsFile(input: Input) {
Expand Down

0 comments on commit 1bb5fab

Please sign in to comment.