Skip to content

Commit

Permalink
Update DataContext.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsch01 authored Nov 8, 2024
1 parent 1433cba commit 574e3bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/data-context/src/DataContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,10 @@ export class DataContext {
}

updateCliBrowser (browser: string) {
(this._modeOptions as Partial<AllModeOptions>).browser = browser
this.coreData.cliBrowser = browser
// in open mode, prevent cliBrowser from being changed after browser is opened
if (this.isRunMode || !this.coreData.cliBrowser) {
(this._modeOptions as Partial<AllModeOptions>).browser = browser
this.coreData.cliBrowser = browser
}
}
}

0 comments on commit 574e3bd

Please sign in to comment.