Skip to content

Commit

Permalink
Fix typo in PhotoViewer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Román A. Sarria committed Jan 10, 2019
1 parent 6ee2ff8 commit 656fc48
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Enable or Disable Picasso Options ( Only Android ): fit, centerInside, centerCrop.

(1.1.20)
- Fix Typo in PhotoViewer.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<plugin id="com-sarriaroman-photoviewer" version="1.1.19" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="com-sarriaroman-photoviewer" version="1.1.20" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>PhotoViewer</name>
<description>This plugin is intended to show a picture from an URL into a Photo Viewer with zoom features.</description>
<js-module name="PhotoViewer" src="www/PhotoViewer.js">
Expand Down
6 changes: 3 additions & 3 deletions www/PhotoViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit 656fc48

Please # to comment.