diff --git a/lib/start.js b/lib/start.js index e8769a8e755c..d6993a7e0b5a 100644 --- a/lib/start.js +++ b/lib/start.js @@ -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', diff --git a/scripts/commands.js b/scripts/commands.js index b0c481ec2472..bbd6a921aa99 100644 --- a/scripts/commands.js +++ b/scripts/commands.js @@ -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)