mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-07 16:25:37 +00:00
* feat: add limited api for system and tracked characters * env variable to disable public api key
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
export default {
|
|
mounted() {
|
|
const button = this.el;
|
|
|
|
button.addEventListener('click', function () {
|
|
|
|
button.classList.remove('copied');
|
|
|
|
// Copy the URL to the clipboard
|
|
navigator.clipboard
|
|
.writeText(button.dataset.url)
|
|
.then(() => {
|
|
button.classList.add('copied');
|
|
})
|
|
.catch(err => {
|
|
console.error('Failed to copy URL:', err);
|
|
});
|
|
});
|
|
},
|
|
};
|