From eadd98ac1aacdafefc7daef75d81d89fdde71fef Mon Sep 17 00:00:00 2001
From: Nikita Krupin <krupin.nikita0110@gmail.com>
Date: Mon, 27 Dec 2021 16:36:18 -0500
Subject: added json parse for latest extension version

---
 Website/pages/help.vue | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

(limited to 'Website/pages/help.vue')

diff --git a/Website/pages/help.vue b/Website/pages/help.vue
index 6e0bc8d..8d4a672 100644
--- a/Website/pages/help.vue
+++ b/Website/pages/help.vue
@@ -3,7 +3,7 @@
     <h1 class="title-text pt-12">Troubleshooting</h1>
     <ol
       class="col-xs-12 col-sm-11 col-md-9 col-lg-7 q-mx-auto text-left"
-      style="line-height: 2.5rem; color: #aaa"
+      style="line-height: 3rem; color: #aaa"
     >
       <li>
         Make sure you have latest version of extension installed,
@@ -90,23 +90,15 @@ export default {
   },
   data: () => ({
     version: "2.0.0.3",
+    discordLink: "https://discord.gg/mYnESY4Md5",
   }),
   mounted() {
     fetch(
       "https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
     )
       .then((response) => response.json())
-      .then((data) => {
-        console.log(data);
-        // for (const product of data.products) {
-        //   let listItem = document.createElement("li");
-        //   listItem.appendChild(document.createElement("strong")).textContent =
-        //     product.Name;
-        //   listItem.append(` can be found in ${product.Location}. Cost: `);
-        //   listItem.appendChild(
-        //     document.createElement("strong")
-        //   ).textContent = `£${product.Price}`;
-        // }
+      .then((json) => {
+        this.version = json.version;
       });
     // .catch(console.error);
   },
-- 
cgit v1.2.3

