Answer the question
In order to leave comments, you need to log in
js SCRIPT1004 error in IE 10, how to fix?
Hello.
I decided to test the site on IE 10 and found that in the console the lines where variables are set via let errors
SCRIPT1004: ';' is expected
if(urlGet.type == 'success'){
$('.success-top').addClass('active');
let url = document.location.href.replace('/type=success/', '');
history.pushState(null, null, url);
setTimeout(() => {
$('.success-top').removeClass('active');
}, 3000)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question