History

Add mobile override mode

Fixes #1157

Jed Fox committed 6 years ago

Commit 2beb46d1 parent 6832c1c1 file · +2 −0Browse files

Unified · Split

assets/javascripts/views/layout/mobile.coffee+2−0
@@ -14,6 +14,8 @@ class app.views.Mobile extends app.View · 13 unmodified lines
14 after: 'afterRoute'14 after: 'afterRoute'
15 15
16 @detect: ->16 @detect: ->
17 if Cookies.get('override-mobile-detect')?
18 return JSON.parse Cookies.get('override-mobile-detect')
17 try19 try
18 (window.matchMedia('(max-width: 480px)').matches) or20 (window.matchMedia('(max-width: 480px)').matches) or
19 (window.matchMedia('(max-width: 767px)').matches) or21 (window.matchMedia('(max-width: 767px)').matches) or