$(document).ready(function(){$('.mobile-share-button').on('click',initNavigatorShare)})
function initNavigatorShare(){let title=this.getAttribute('share-title')
let shareUrl=this.getAttribute('share-url')
let currentUrl=window.location.href;if(shareUrl){currentUrl=shareUrl}
currentUrl=removeURLParameter(currentUrl,'app');if(navigator.share){let shareData={title:title,url:currentUrl}
navigator.share(shareData).then(function(){console.log('Thanks for sharing!');}).catch(function(err){console.log("Error while using Web share API:");console.log(err);});}else if(window.Applicaster&&window.Applicaster.JS2Native){let entry={extensions:{share_url:currentUrl,share_message:''}};try{window.Applicaster.JS2Native.nativeShare(entry);}catch(e){alert("Error while using Applicaster share API:");alert(e.message);}}else{alert("Browser doesn't support this API!");}};;
