Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
opiran-club authored Aug 17, 2024
1 parent 5d474a2 commit b487c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
functionconvertToURL() {
function convertToURL() {
const name = document.getElementById('name').value;
const address = document.getElementById('address').value;
const port = document.getElementById('port').value;
Expand All @@ -14,7 +14,7 @@ functionconvertToURL() {
document.getElementById('wg-uri').innerText = url;
}

functioncopyToClipboard() {
function copyToClipboard() {
const urlElement = document.getElementById('wg-uri');
const urlText = urlElement.innerText;
navigator.clipboard.writeText(urlText).then(() => {
Expand Down

0 comments on commit b487c59

Please sign in to comment.