From 31eb6e60451717fdc46c8e75d7b2ff20d18c9444 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Tue, 15 Dec 2015 15:38:27 -0800 Subject: [PATCH] Fix #3017 --- app/views/play/menu/InventoryModal.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/play/menu/InventoryModal.coffee b/app/views/play/menu/InventoryModal.coffee index e797b30eb..03927dc83 100644 --- a/app/views/play/menu/InventoryModal.coffee +++ b/app/views/play/menu/InventoryModal.coffee @@ -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 =>