You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/js/client-custom/safeForm.js

12 lines
281 B
JavaScript

window.addEventListener('load',function () {
setTimeout(()=>{
document.querySelectorAll('.safe-form')?.forEach(function (el) {
const url = el.querySelector('.safe-url').getAttribute('data-url');
el.setAttribute('action',url);
})
},1220);
})