Skip to content

Commit

Permalink
#7 Update example : isAvailable takes two functions as in-parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Nov 20, 2015
1 parent 05c0fff commit 5540926
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-safariviewcontroller",
"version": "1.1.0",
"version": "1.1.1",
"description": "Forget InAppBrowser for iOS - this is way better for displaying read-only web content in your PhoneGap app.",
"cordova": {
"id": "cordova-plugin-safariviewcontroller",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<plugin
id="cordova-plugin-safariviewcontroller"
version="1.1.0"
version="1.1.1"
xmlns="http://apache.org/cordova/ns/plugins/1.0">

<name>SafariViewController</name>
Expand Down
4 changes: 2 additions & 2 deletions www/SafariViewController.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var exec = require("cordova/exec");
module.exports = {
isAvailable: function (onSuccess, onError) {
exec(onSuccess, onError, "SafariViewController", "isAvailable", []);
isAvailable: function (callback) {
exec(callback, null, "SafariViewController", "isAvailable", []);
},
show: function (options, onSuccess, onError) {
exec(onSuccess, onError, "SafariViewController", "show", [options]);
Expand Down

0 comments on commit 5540926

Please sign in to comment.