mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-13 22:00:28 +05:30
use optional chaining
This commit is contained in:
parent
8899425a47
commit
e81140531c
@ -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 New Issue
Block a user