diff --git a/dyndns/static/js/actions-1.0.0.js b/dyndns/static/js/actions-1.0.0.js index 5d24861..33e80a7 100644 --- a/dyndns/static/js/actions-1.0.0.js +++ b/dyndns/static/js/actions-1.0.0.js @@ -132,7 +132,13 @@ $("button.copyUrlToClipboard").click(function () { let password = document.getElementById('host-password_'+id).innerHTML let out = location.protocol + '//' +username.trim()+':'+password.trim()+'@'+ domain out +='/update?hostname='+hostname - navigator.clipboard.writeText(out.trim()); + + let dummy = document.createElement("textarea"); + document.body.appendChild(dummy); + dummy.value = out; + dummy.select(); + document.execCommand("copy"); + document.body.removeChild(dummy); }); function randomHash() {