Fixes #1157
Unified · Split
| @@ -14,6 +14,8 @@ class app.views.Mobile extends app.View · 13 unmodified lines | ||
| 14 | 14 | after: 'afterRoute' |
| 15 | 15 | |
| 16 | 16 | @detect: -> |
| 17 | + if Cookies.get('override-mobile-detect')? | |
| 18 | + return JSON.parse Cookies.get('override-mobile-detect') | |
| 17 | 19 | try |
| 18 | 20 | (window.matchMedia('(max-width: 480px)').matches) or |
| 19 | 21 | (window.matchMedia('(max-width: 767px)').matches) or |