Remove theme settings on satspay invoice page and default to blue theme to allow users to skin satspay invoice page more easily

This commit is contained in:
Black Coffee
2022-12-01 12:21:25 +01:00
committed by dni ⚡
parent 7bc660ea09
commit 29a503a0eb
2 changed files with 19 additions and 10 deletions
@@ -303,6 +303,11 @@
rel="stylesheet"
type="text/css"
/>
<style>
header button.q-btn-dropdown {
display: none;
}
</style>
{% endblock %} {% block scripts %}
<script src="https://mempool.space/mempool.js"></script>
@@ -456,6 +461,10 @@
created: async function () {
await this.getCustomCss()
if (this.charge.payment_request) this.payInvoice()
// Remove a user defined theme
document.body.setAttribute('data-theme', '')
if (this.charge.lnbitswallet) this.payInvoice()
else this.payOnchain()
await this.checkBalances()