Skip to content

Commit

Permalink
Add --disable_pdfjs_extension switch
Browse files Browse the repository at this point in the history
Fix #335
  • Loading branch information
bbondy committed Jun 13, 2018
1 parent 47ae8f6 commit 5a520da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const start = (buildConfig = config.defaultBuildConfig, options) => {
if (options.disable_brave_extension) {
braveArgs.push('--disable-brave-extension')
}
if (options.disable_pdfjs_extension) {
braveArgs.push('--disable-pdfjs-extension')
}

let cmdOptions = {
stdio: 'inherit',
Expand Down
1 change: 1 addition & 0 deletions scripts/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ program
.option('--user_data_dir_name [base_name]', 'set user data directory base name to [base_name]', 'brave-development')
.option('--no_sandbox', 'disable the sandbox')
.option('--disable_brave_extension', 'disable loading the Brave extension')
.option('--disable_pdfjs_extension', 'disable loading the PDFJS extension')
.arguments('[build_config]')
.action(start)

Expand Down

0 comments on commit 5a520da

Please sign in to comment.