From 56dba8900829996560cb7bfbe5fe5bbb004daaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Fri, 1 Mar 2019 19:58:15 +0100 Subject: [PATCH] Set content to empty string if null or undefined --- www/printer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/printer.js b/www/printer.js index cc9db4c..a25a0a2 100755 --- a/www/printer.js +++ b/www/printer.js @@ -199,7 +199,7 @@ exports.print = function (content, options, callback, scope) var fn = this._createCallbackFn(callback, scope), params = this._mergeWithDefaults(options || {}); - exec(fn, null, 'Printer', 'print', [content, params]); + exec(fn, null, 'Printer', 'print', [content || '', params]); }; /**