Fixes #1157
Unified · Split
| @@ -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 | try | 19 | try |
| 18 | (window.matchMedia('(max-width: 480px)').matches) or | 20 | (window.matchMedia('(max-width: 480px)').matches) or |
| 19 | (window.matchMedia('(max-width: 767px)').matches) or | 21 | (window.matchMedia('(max-width: 767px)').matches) or |