From 5a520da33e17752ea9d0e9d58ff0a76437c28573 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Wed, 13 Jun 2018 00:47:51 -0400 Subject: [PATCH] Add --disable_pdfjs_extension switch Fix https://github.com/brave/brave-browser/issues/335 --- lib/start.js | 3 +++ scripts/commands.js | 1 + 2 files changed, 4 insertions(+) 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)