1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for scripts

This commit is contained in:
Benjamin Beganović 2021-08-19 13:34:51 +02:00
parent 7195436950
commit 9d51137a5a

View File

@ -78,9 +78,7 @@ class SquareCreditCard {
} }
async handle() { async handle() {
if (document.querySelector('meta[name=square-authorize]')) { await this.init();
await this.init();
}
document document
.getElementById('authorize-card') .getElementById('authorize-card')
@ -121,10 +119,6 @@ class SquareCreditCard {
document.getElementById('save-card--container').style.display = document.getElementById('save-card--container').style.display =
'grid'; 'grid';
document.querySelector('input[name=token]').value = ''; document.querySelector('input[name=token]').value = '';
if (!this.isLoaded) {
await this.init();
}
}); });
let toggleWithToken = document.querySelector( let toggleWithToken = document.querySelector(