s/share/nativeShare (#7038)

s/share/nativeShare (#7038)

diff --git a/app/assets/javascripts/discourse/initializers/topic-footer-buttons.js.es6 b/app/assets/javascripts/discourse/initializers/topic-footer-buttons.js.es6
index 812ac3f..b538e04 100644
--- a/app/assets/javascripts/discourse/initializers/topic-footer-buttons.js.es6
+++ b/app/assets/javascripts/discourse/initializers/topic-footer-buttons.js.es6
@@ -1,5 +1,5 @@
 import showModal from "discourse/lib/show-modal";
-import { share } from "discourse/lib/pwa-utils";
+import { nativeShare } from "discourse/lib/pwa-utils";
 import { registerTopicFooterButton } from "discourse/lib/register-topic-footer-button";
 
 export default {
@@ -13,7 +13,7 @@ export default {
       label: "topic.share.title",
       title: "topic.share.help",
       action() {
-        share({ url: this.get("topic.shareUrl") }).catch(() =>
+        nativeShare({ url: this.get("topic.shareUrl") }).catch(() =>
           showModal("share-and-invite", {
             modalClass: "share-and-invite",
             panels: [
diff --git a/app/assets/javascripts/discourse/lib/pwa-utils.js.es6 b/app/assets/javascripts/discourse/lib/pwa-utils.js.es6
index ff53576..5fdbe63 100644
--- a/app/assets/javascripts/discourse/lib/pwa-utils.js.es6
+++ b/app/assets/javascripts/discourse/lib/pwa-utils.js.es6
@@ -1,4 +1,4 @@
-export function share(data) {
+export function nativeShare(data) {
   return new Ember.RSVP.Promise((resolve, reject) => {
     if (
       window.location.protocol === "https:" &&
diff --git a/app/assets/javascripts/discourse/widgets/post.js.es6 b/app/assets/javascripts/discourse/widgets/post.js.es6
index b076c12..7710e75 100644
--- a/app/assets/javascripts/discourse/widgets/post.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post.js.es6
@@ -2,7 +2,7 @@ import PostCooked from "discourse/widgets/post-cooked";
 import DecoratorHelper from "discourse/widgets/decorator-helper";
 import { createWidget, applyDecorators } from "discourse/widgets/widget";
 import { iconNode } from "discourse-common/lib/icon-library";
-import { share } from "discourse/lib/pwa-utils";
+import { nativeShare } from "discourse/lib/pwa-utils";
 import { transformBasicPost } from "discourse/lib/transform-post";
 import { postTransformCallbacks } from "discourse/widgets/post-stream";
 import { h } from "virtual-dom";
@@ -282,7 +282,7 @@ createWidget("post-date", {
 
     // use native webshare when available
     // navigator.share needs HTTPS, returns undefined on HTTP
-    share({ url: this.attrs.shareUrl }).catch(modalFallback);
+    nativeShare({ url: this.attrs.shareUrl }).catch(modalFallback);
   }
 });

GitHub sha: 9618300d