Add mobile override mode

Fixes #1157
pull/1158/head
Jed Fox 5 years ago
parent 6832c1ccf6
commit 2beb46db42

@ -14,6 +14,8 @@ class app.views.Mobile extends app.View
after: 'afterRoute'
@detect: ->
if Cookies.get('override-mobile-detect')?
return JSON.parse Cookies.get('override-mobile-detect')
try
(window.matchMedia('(max-width: 480px)').matches) or
(window.matchMedia('(max-width: 767px)').matches) or

Loading…
Cancel
Save