The isFullscreen() function gets the fullscreen DOM object, but doesn't determine if it's the game canvas or not. When the letterbox option is set in the game, going fullscreen on the entire web page will result in the game canvas size changing, but the game resolution not updating, so I've changed the isFullscreen() function to work around this issue.
The
isFullscreen()
function gets the fullscreen DOM object, but doesn't determine if it's the game canvas or not. When theletterbox
option is set in the game, going fullscreen on the entire web page will result in the game canvas size changing, but the game resolution not updating, so I've changed theisFullscreen()
function to work around this issue.