diff --git a/assets/javascripts/views/layout/mobile.coffee b/assets/javascripts/views/layout/mobile.coffee index cb87a323..77c5ee73 100644 --- a/assets/javascripts/views/layout/mobile.coffee +++ b/assets/javascripts/views/layout/mobile.coffee @@ -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