mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-05 18:56:44 +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: {
|
||||
async fetchConfig() {
|
||||
this.fetchJson("confg.json").then(config => {
|
||||
this.donationHref = config.donation_href;
|
||||
this.statusPageHref = config.status_page_href;
|
||||
this.donationHref = config?.donation_href;
|
||||
this.statusPageHref = config?.status_page_href;
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue