mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fix #3017
This commit is contained in:
parent
a9b800251e
commit
31eb6e6045
1 changed files with 3 additions and 1 deletions
|
@ -497,7 +497,9 @@ module.exports = class InventoryModal extends ModalView
|
|||
@playSound 'menu-button-click'
|
||||
@showLoading()
|
||||
ua = navigator.userAgent.toLowerCase()
|
||||
unless me.isAdmin() or hasGoneFullScreenOnce and (/safari/.test(ua) and not /chrome/.test(ua)) or $(window).height() >= 658 # Min vertical resolution needed at 1366px wide
|
||||
isSafari = /safari/.test(ua) and not /chrome/.test(ua)
|
||||
isTooShort = $(window).height() < 658 # Min vertical resolution needed at 1366px wide
|
||||
if isTooShort and not me.isAdmin() and not hasGoneFullScreenOnce and not isSafari
|
||||
@toggleFullscreen()
|
||||
hasGoneFullScreenOnce = true
|
||||
@updateConfig =>
|
||||
|
|
Loading…
Reference in a new issue