This commit is contained in:
Nick Winter 2015-12-15 15:38:27 -08:00 committed by Rob
parent a9b800251e
commit 31eb6e6045

View file

@ -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 =>