diff --git a/src/public/index.html b/src/public/index.html
index 9959e97..45306bf 100644
--- a/src/public/index.html
+++ b/src/public/index.html
@@ -942,7 +942,14 @@
-
Share Link
+
+
Share Link
+
+
+
+
-
@@ -1655,7 +1662,23 @@
},
getShareLinkForNode: function(nodeId) {
return window.location.origin + `/?node_id=${nodeId}`;
- }
+ },
+ copyShareLinkForNode: function(nodeId) {
+
+ // make sure copy to clipboard is supported
+ if(!navigator.clipboard || !navigator.clipboard.writeText){
+ alert("Clipboard not supported. Site must be served via https on iOS.");
+ return;
+ }
+
+ // copy share link to clipboard
+ const url = this.getShareLinkForNode(nodeId);
+ navigator.clipboard.writeText(url);
+
+ // tell use we copied it
+ alert("Copied to clipboard!");
+
+ },
},
computed: {
searchedNodes() {