console.log() error on wp7
So, after several hours i was lucky enough to find out why my web app is not working on mobile internet explorer on wp7 devices. I went through a lot of pain to find this out and I almost gave up. But then I accidentally removed one line of my javascript code and app started working, not fully but it at least showed first screen after preloader. When i removed all the lines of code that contained console.log() app started working correctly.
Internet explorer is known to be web developer's sworn enemy but this is the strangest error yet.
I don't know if anybody else had the same problem but if you did please comment.
Written by Antonio
Related protips
1 Response
It's probably because console.log is not supported on wp7. You can use a polyfill http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/. Why would you log anything in production anyway?
Have a fresh tip? Share with Coderwall community!
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside