From 656fc48d7b6f7cecab9d6f37f458a8e76d4942a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20A=2E=20Sarria?= Date: Thu, 10 Jan 2019 09:15:16 -0300 Subject: [PATCH] Fix typo in PhotoViewer.js --- README.md | 5 ++++- package.json | 2 +- plugin.xml | 2 +- www/PhotoViewer.js | 6 +++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 476e560..b03f9c0 100644 --- a/README.md +++ b/README.md @@ -89,4 +89,7 @@ PhotoViewer.show('http://my_site.com/my_image.jpg', 'Optional Title', options); (1.1.9) - Support for Headers -- Enable or Disable Picasso Options ( Only Android ): fit, centerInside, centerCrop. \ No newline at end of file +- Enable or Disable Picasso Options ( Only Android ): fit, centerInside, centerCrop. + +(1.1.20) +- Fix Typo in PhotoViewer.js \ No newline at end of file diff --git a/package.json b/package.json index 0c4a1a6..5894412 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com-sarriaroman-photoviewer", - "version": "1.1.19", + "version": "1.1.20", "description": "This plugin is intended to show a picture from an URL into a Photo Viewer with zoom features.", "cordova": { "id": "com-sarriaroman-photoviewer", diff --git a/plugin.xml b/plugin.xml index 530693a..1f81956 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + PhotoViewer This plugin is intended to show a picture from an URL into a Photo Viewer with zoom features. diff --git a/www/PhotoViewer.js b/www/PhotoViewer.js index d267784..d60ce13 100644 --- a/www/PhotoViewer.js +++ b/www/PhotoViewer.js @@ -31,11 +31,11 @@ exports.show = function(url, title, options) { centerCrop: false }; - if(options.picassoOptions) { - piccasoOptions = Object.assign(piccasoOptions, options.picassoOptions); + if(options.piccasoOptions) { + piccasoOptions = Object.assign(piccasoOptions, options.piccasoOptions); } - var args = [url, title, options.share, options.closeButton, options.copyToReference, options.headers, picassoOptions]; + var args = [url, title, options.share, options.closeButton, options.copyToReference, options.headers, piccasoOptions]; exec(function() {}, function() {}, "PhotoViewer", "show", args); };