mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
No auto-fullscreen for admins
This commit is contained in:
parent
6db4d72dc4
commit
5a0a4d1446
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ module.exports = class InventoryModal extends ModalView
|
||||||
@playSound 'menu-button-click'
|
@playSound 'menu-button-click'
|
||||||
@showLoading()
|
@showLoading()
|
||||||
ua = navigator.userAgent.toLowerCase()
|
ua = navigator.userAgent.toLowerCase()
|
||||||
unless hasGoneFullScreenOnce or (/safari/.test(ua) and not /chrome/.test(ua)) or $(window).height() >= 658 # Min vertical resolution needed at 1366px wide
|
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
|
||||||
@toggleFullscreen()
|
@toggleFullscreen()
|
||||||
hasGoneFullScreenOnce = true
|
hasGoneFullScreenOnce = true
|
||||||
@updateConfig =>
|
@updateConfig =>
|
||||||
|
|
Loading…
Reference in a new issue