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