Merge pull request #6363 from beganovich/v5-589

(v5) Preselect token if avilable, on payments
This commit is contained in:
Benjamin Beganović 2021-07-29 13:57:52 +02:00 committed by GitHub
commit 649b04d610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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