Set content to empty string if null or undefined
This commit is contained in:
parent
9cbb6b8f9a
commit
56dba89008
@ -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]);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user