Alert/confirm broke Fullscreen mode

Hi there

I have a little problem with alert on fullscreen mode.

If alert are shown on fullscreen mode, fullscreen will be exit/close immediately, then all game audio are muted (can’t be played) and game start lagging.

How to fix this?

Thanks

Avoid alerts while in fullscreen.

Or use JQuery modal windows. :3

“Hey Doc it hurts when I do this”
“OK then don’t do that”

Ok. Thanks all