Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Mar 17, 2024
1 parent 6a7a572 commit de37e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def generate_pdf
# TODO: Put this in a config
# command = 'electron-pdf'
browser_config = '{ "webPreferences": { "sandbox" : false } }'
exe = "node_modules/.bin/electron-pdf --browserConfig #{browser_config}"
exe = "node_modules/.bin/electron-pdf --browserConfig '#{browser_config}'"

exe.prepend('xvfb-run -n 9 ') if Rails.env.production?
input_file = "#{dir}/input.html"
Expand Down

0 comments on commit de37e0b

Please sign in to comment.