I am receieving the following error when my site loads:
Uncaught SyntaxError: Unexpected token ‘var’
I am using Elementor and it has something to do with the admin-ajax.php
Does anyone know how to rectify this error. Many thanks.
2
It has to due with the "patt" variable at line 3034. Your slashes are commenting out everything so the browser sees this:
var patt = var result = oldUrl.match(patt);
JS expects a value after equal sign which is not given. Your problem will be solved when you uncomment [0-9] at line 3034
var patt = [0-9];
Click here to cancel reply.
2
Answers
It has to due with the "patt" variable at line 3034. Your slashes are commenting out everything so the browser sees this:
JS expects a value after equal sign which is not given. Your problem will be solved when you uncomment [0-9] at line 3034