diff --git a/Website/pages/debug.vue b/Website/pages/debug.vue index 0751c60..ec033c2 100644 --- a/Website/pages/debug.vue +++ b/Website/pages/debug.vue @@ -14,11 +14,11 @@ Device Type: {{ device._parsed.category }}

Installed Extension Information:
- Extension Version:
+ Extension Version: Waiting For Extension...
- + mdi-content-copyCopy @@ -32,7 +32,28 @@ return { device: this.$ua, } + }, + + methods: { + copy() { + + const toCopy = `\`\`\` +Browser Information: +Browser: ${ this.device._parsed.name } +Browser Vendor: ${ this.device._parsed.vendor } +Version: ${ this.device._parsed.version } +Operating System: ${ this.device._parsed.os } +Operating System Version: ${ this.device._parsed.os_version } +Device Type: ${ this.device._parsed.category } + +Installed Extension Information: +Extension Version: ${document.getElementById('extension-version').innerHTML} +\`\`\``; + + navigator.clipboard.writeText(toCopy); + } } + }