From 8899425a47d1961faca16ee3ffc30b086d968b8c Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 10 Sep 2022 11:09:54 +0200 Subject: [PATCH] apply suggested changes --- src/components/FooterComponent.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue index 994e9394..a10e4133 100644 --- a/src/components/FooterComponent.vue +++ b/src/components/FooterComponent.vue @@ -36,8 +36,7 @@ export default { }, methods: { async fetchConfig() { - fetch("config.json").then(async response => { - const config = await response.json(); + this.fetchJson("confg.json").then(config => { this.donationHref = config.donation_href; this.statusPageHref = config.status_page_href; }); @@ -46,7 +45,7 @@ export default { }; -