[devdocsgjs/main: 1016/1867] Add mobile override mode




commit 2beb46db422b3b82c47bd3a2ac19c82ba47590a4
Author: Jed Fox <git twopointzero us>
Date:   Mon Jan 13 22:30:39 2020 -0500

    Add mobile override mode
    
    Fixes #1157

 assets/javascripts/views/layout/mobile.coffee | 2 ++
 1 file changed, 2 insertions(+)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]