Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing of --no-sandbox to chrome-option #51

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix passing of --no-sandbox to chrome-option
  • Loading branch information
gdancel authored May 22, 2019
commit b86e651131a020e3b23ac756b767c605d55d00c4
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