mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
use optional chaining
This commit is contained in:
parent
8899425a47
commit
e81140531c
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
async fetchConfig() {
|
async fetchConfig() {
|
||||||
this.fetchJson("confg.json").then(config => {
|
this.fetchJson("confg.json").then(config => {
|
||||||
this.donationHref = config.donation_href;
|
this.donationHref = config?.donation_href;
|
||||||
this.statusPageHref = config.status_page_href;
|
this.statusPageHref = config?.status_page_href;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue