From ee38edb6169f922139e4274d8b566b2d71685387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Tue, 12 Feb 2019 09:48:22 +0100 Subject: [PATCH] Change pick() to accept ui options instead of general options --- www/printer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/printer.js b/www/printer.js index 4b4c355..fb2ff1e 100755 --- a/www/printer.js +++ b/www/printer.js @@ -142,7 +142,7 @@ exports.getPrintableTypes = function (callback, scope) /** * Displays system interface for selecting a printer. * - * @param [ Object ] options Optional options. + * @param [ Object ] options Optional ui options. * @param [ Function ] callback The callback function. * @param [ Object ] scope The scope for the function. * @@ -158,7 +158,7 @@ exports.pick = function (options, callback, scope) } var fn = this._createCallbackFn(callback, scope), - params = this._mergeWithDefaults(options || {}); + params = this._mergeWithDefaults({ ui: options }); if (isIOS) {