Add clipboard functionality and display adventure result

This commit is contained in:
Sean Morley
2024-04-02 19:21:10 +00:00
parent 0dde2fbe6a
commit d86eaeb0be
3 changed files with 16 additions and 1 deletions

View File

@@ -93,6 +93,8 @@
.then(response => response.json())
.then(data => {
console.log('Success:', data);
let url = window.location.origin + '/shared/' + key
navigator.clipboard.writeText(url)
})
.catch((error) => {
console.error('Error:', error);