From 496174f530aedc6db5a923fc90ad9c288d5e2f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Wed, 22 Apr 2015 23:24:57 +0200 Subject: [PATCH] Missing brackets --- www/printer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/printer.js b/www/printer.js index b3f6b02..0d802ab 100755 --- a/www/printer.js +++ b/www/printer.js @@ -80,13 +80,15 @@ exports.print = function (content, options, callback, scope) { return; } - if (typeof params == 'string') + if (typeof params == 'string') { params = { name: params }; + } params = this.mergeWithDefaults(params); - if ([null, undefined, ''].indexOf(params.name) > -1) + if ([null, undefined, ''].indexOf(params.name) > -1) { params.name = this.DEFAULT_DOC_NAME; + } exec(fn, null, 'Printer', 'print', [page, params]); };