Skip to content

Commit

Permalink
Fix passing of --no-sandbox to chrome-option
Browse files Browse the repository at this point in the history
  • Loading branch information
gdancel authored May 22, 2019
1 parent c714705 commit b86e651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdf_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ defmodule PdfGenerator do
"--paper-height", height,
],
more_params,
if(disable_sandbox, do: ["--chrome-option", "--no-sandbox"], else: [])
if(disable_sandbox, do: ["--chrome-option=--no-sandbox"], else: [])
])
{executable, arguments} # |> IO.inspect()
end
Expand Down

0 comments on commit b86e651

Please sign in to comment.