diff options
Diffstat (limited to 'public/static/js/travelynx-actions.js')
-rw-r--r-- | public/static/js/travelynx-actions.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js index deb010a..0df6989 100644 --- a/public/static/js/travelynx-actions.js +++ b/public/static/js/travelynx-actions.js @@ -148,9 +148,11 @@ function tvly_reg_handlers() { shareObj['url'] = $(this).data('url'); } navigator.share(shareObj); + } else if ($(this).data('url')) { + location.href = $(this).data('url'); } }); - if ($('.action-share').length && !navigator.share) { + if ($('.action-share').length && !navigator.share && !$('.action-share').data('url')) { $('.action-share').css('display', 'none'); } } |