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
1414 after: 'afterRoute'
1515
1616 @detect: ->
17+ if Cookies.get('override-mobile-detect')?
18+ return JSON.parse Cookies.get('override-mobile-detect')
1719 try
1820 (window.matchMedia('(max-width: 480px)').matches) or
1921 (window.matchMedia('(max-width: 767px)').matches) or