Uncaught SyntaxError error in Console
-
Hello to the team,
I’ve been using this plugin for a while now, thanks for that!
I noticed a console error while visiting my pages and it seems to be linked to easy affiliate links.
If you go on any page, you will see this in the console:Uncaught SyntaxError: Invalid regular expression flags (at autoptimize_single_697c77bb18b5f97b49460656c3b765d3.js:107:124)
Looking at this line in particular:
if(this.method==='GET'||this.method==='HEAD'){if(options.cache==='no-store'||options.cache==='no-cache'){var reParamSearch=/([?&])_=[^&]*/if(reParamSearch.test(this.url)){this.url=this.url.replace(reParamSearch,'$1_='+new Date().getTime())}else{var reQueryString=/\?/this.url+=(reQueryString.test(this.url)?'&':'?')+'_='+new Date().getTime()}}}}
I couldn’t find what causing the issue here,
Thanks for your help
MichaelThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Uncaught SyntaxError error in Console’ is closed to new replies.