Fix keys to match API.

This commit is contained in:
Kavin 2022-10-02 14:54:13 +01:00
parent e81140531c
commit ec83358a44
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
2 changed files with 3 additions and 7 deletions

View File

@ -1,4 +0,0 @@
{
"donation_href": "",
"status_page_href": ""
}

View File

@ -36,9 +36,9 @@ export default {
},
methods: {
async fetchConfig() {
this.fetchJson("confg.json").then(config => {
this.donationHref = config?.donation_href;
this.statusPageHref = config?.status_page_href;
this.fetchJson(this.apiUrl() + "/config").then(config => {
this.donationHref = config?.donationUrl;
this.statusPageHref = config?.statusPageUrl;
});
},
},