Missing brackets

This commit is contained in:
Sebastián Katzer 2015-04-22 23:24:57 +02:00
parent 2fb312e34b
commit 496174f530

View File

@ -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]);
};