From b092b8e9066b0ceb7b6d94ab22f7694ae6fd07e7 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Thu, 6 Jun 2019 09:31:51 +0200 Subject: [PATCH] bump --- package.json | 2 +- plugin.xml | 2 +- www/SocialSharing.js | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 42c1673f..f4a0dab9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugin.xml b/plugin.xml index fa59957c..5293a5db 100755 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="5.4.5"> SocialSharing diff --git a/www/SocialSharing.js b/www/SocialSharing.js index ae222cc0..e336b2ae 100644 --- a/www/SocialSharing.js +++ b/www/SocialSharing.js @@ -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"; // }; @@ -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; };