Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jun 6, 2019
1 parent d93c92b commit b092b8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 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-x-socialsharing",
"version": "5.4.4",
"version": "5.4.5",
"description": "Share text, images (and other files), or a link via the native sharing widget of your device. Android is fully supported, as well as iOS 6 and up. WP8 has somewhat limited support.",
"cordova": {
"id": "cordova-plugin-x-socialsharing",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-x-socialsharing"
version="5.4.4">
version="5.4.5">

<name>SocialSharing</name>

Expand Down
11 changes: 6 additions & 5 deletions www/SocialSharing.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function SocialSharing() {
}
}

// Override this method (after deviceready) to set the location where you want the iPad popup arrow to appear.
// If not overridden with different values, the popup is not used. Example:
//
//
// window.plugins.socialsharing.iPadPopupCoordinates = function() {
// return "100,100,200,300";
// };
Expand Down Expand Up @@ -137,12 +137,13 @@ SocialSharing.install = function () {
}

window.plugins.socialsharing = new SocialSharing();

// Note only polyfill navigator.share if it is not defined, since shareW3C implements L1 of the spec,
// and an existing navigator.share method could implement L2.
if (!navigator.share)
if (!navigator.share) {
navigator.share = window.plugins.socialsharing.shareW3C;

}

return window.plugins.socialsharing;
};

Expand Down

0 comments on commit b092b8e

Please sign in to comment.