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