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

10 lines
279 B
JavaScript

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