mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-28 17:07:55 +01:00
added json parse for latest extension version
This commit is contained in:
1 parent
7e9da1b229
commit
eadd98ac1a
1 file changed
+4
-12
+4
-12
@@ -3,7 +3,7 @@
|
|||||||
<h1 class="title-text pt-12">Troubleshooting</h1>
|
<h1 class="title-text pt-12">Troubleshooting</h1>
|
||||||
<ol
|
<ol
|
||||||
class="col-xs-12 col-sm-11 col-md-9 col-lg-7 q-mx-auto text-left"
|
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>
|
<li>
|
||||||
Make sure you have latest version of extension installed,
|
Make sure you have latest version of extension installed,
|
||||||
@@ -90,23 +90,15 @@ export default {
|
|||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
version: "2.0.0.3",
|
version: "2.0.0.3",
|
||||||
|
discordLink: "https://discord.gg/mYnESY4Md5",
|
||||||
}),
|
}),
|
||||||
mounted() {
|
mounted() {
|
||||||
fetch(
|
fetch(
|
||||||
"https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
|
"https://raw.githubusercontent.com/Anarios/return-youtube-dislike/main/Extensions/combined/manifest-chrome.json"
|
||||||
)
|
)
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((json) => {
|
||||||
console.log(data);
|
this.version = json.version;
|
||||||
// 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}`;
|
|
||||||
// }
|
|
||||||
});
|
});
|
||||||
// .catch(console.error);
|
// .catch(console.error);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user