Jump to content

Internet Explorer 11 Strange Behaviour


pain_gwar
 Share

Recommended Posts

Hi guys, i have this strange behaviour with IE11 and i really have no idea what to do.

 

When i try to launch my game (in Canvas Mode not WebGL) i cannot see nothing at all, no images, only the background color. The strange thing is that if i open the console log (F12) and refresh the page everything works perfectly! If i disable the console again and refresh here i got nothing at all again.

 

It's a very strange behaviour and i really don't know what to do. Anyone got this kind of issue? I'm using the full-screen template and Phaser 1.1.6.

 

Thanks.

Link to comment
Share on other sites

Ok i found a solution. 

 

i put this code at the beginning of the script tag in my index.html

 

// IE9 fix
if(!window.console) {
var console = {
log : function(){},
warn : function(){},
error : function(){},
time : function(){},
timeEnd : function(){}
}
}

 

Here more info about it 

 

http://stackoverflow.com/questions/7742781/why-javascript-only-works-after-opening-developer-tools-in-ie-once

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...