diff --git a/html/script.js b/html/script.js
index 31b0cc3..e3195ce 100644
--- a/html/script.js
+++ b/html/script.js
@@ -8910,15 +8910,7 @@ shareLinkInput.hidden = true;
document.body.appendChild(shareLinkInput);
function copyShareLink() {
- // Assign shareLinkInput the value we want to copy
- shareLinkInput.setAttribute("value", shareLink);
-
- // Highlight its content
- shareLinkInput.select();
- // Copy the highlighted text
- document.execCommand("copy");
- // deselect input field
- shareLinkInput.blur();
+ navigator.clipboard.writeText(shareLink);
copyLinkTime = new Date().getTime();
copiedIcao = SelectedPlane.icao;