Preselect token if avilable, on payments

This commit is contained in:
Benjamin Beganović 2021-07-29 13:56:07 +02:00
parent d1ad3bcb26
commit 91dc9e3b0f

View File

@ -57,5 +57,13 @@
.querySelector('div[data-ref="gateway-container"]')
.scrollIntoView({behavior: "smooth"});
});
document.addEventListener('DOMContentLoaded', function() {
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
if (toggleWithToken) {
toggleWithToken.click();
}
});
</script>
@endpush