From de37e0bad931d220dd77597acf4131a7042895a6 Mon Sep 17 00:00:00 2001 From: Tom Naessens Date: Sun, 17 Mar 2024 23:51:06 +0100 Subject: [PATCH] . --- app/models/note.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"