From 687cb38da709791fb8bc272677d2ed1575bdde50 Mon Sep 17 00:00:00 2001
From: Front <27463495+Frontesque@users.noreply.github.com>
Date: Mon, 27 Dec 2021 19:12:40 -0500
Subject: [PATCH] fix copy button
---
Website/pages/debug.vue | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
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);
+ }
}
+
}