diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index 4d09cda16..f58e1f10b 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -24,6 +24,7 @@ def before_request(): if not get_setting('Bots') and request.headers.get("Authorization"): abort(403) g.db = db_session() + g.webview = '; wv) ' in ua if ' firefox/' in ua: g.type = 'firefox' diff --git a/files/templates/header.html b/files/templates/header.html index 866a2b268..ec4337e52 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -98,7 +98,11 @@ {% endif %} - + + {% if g.webview %} + + {% endif %} + {% if SITE_NAME == 'PCM' %} {% endif %}