diff --git a/app/models/note.rb b/app/models/note.rb index ca73fdf..3fd846e 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -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"