Last Updated: February 25, 2016
·
790
· anovoselnik

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.

1 Response
Add your 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?

over 1 year ago ·

Have a fresh tip? Share with Coderwall community!

Post
Post a tip