Removed unused custom css api call from display.html

This commit is contained in:
Black Coffee
2022-10-25 11:04:07 +01:00
parent a3baad03e0
commit 923cbc579c
@@ -333,17 +333,6 @@
} }
) )
}, },
getCustomCss: async function () {
try {
const {data} = await LNbits.api.request(
'GET',
`/satspay/api/v1/settings/css/${this.charge.id}`
)
this.customCss = data
} catch (error) {
LNbits.utils.notifyApiError(error)
}
},
checkBalances: async function () { checkBalances: async function () {
if (this.charge.hasStaleBalance) return if (this.charge.hasStaleBalance) return
try { try {
@@ -445,7 +434,6 @@
} }
}, },
created: async function () { created: async function () {
await this.getCustomCss()
if (this.charge.lnbitswallet) this.payInvoice() if (this.charge.lnbitswallet) this.payInvoice()
else this.payOnchain() else this.payOnchain()
await this.checkBalances() await this.checkBalances()