Javascript inspection not working properly

I've got two projections, one which is inspecting my js correctly and one which isn't.

The failing project isn't offering me autocomplete for javascript functions and it's warning me of things like this

     vidLink = encodeURIComponent(vidLink);

saying that it doesn't recognise encodeURIcomponent.

It's obviously a settings issue but I can't work out what I need to do to get it to recognise standard javascript functions and globals.

2 comments
Comment actions Permalink

Hi there,

Settings | JavaScript | Libraries -- please check that you have appropriate library enabled (I believe it's "HTML" .. or maybe "HTML5 / Ecma Script 5" -- not JS "user" unfortunately)

0
Comment actions Permalink

Thanks. You're right, basic 'HTML' wasn't ticked.

0

Please sign in to leave a comment.