diff --git a/files/__main__.py b/files/__main__.py index 3f0a61e25..da7c2681f 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -99,13 +99,8 @@ def before_request(): if not app.config['SETTINGS']['Bots'] and request.headers.get("Authorization"): abort(503) g.db = db_session() - - if '; wv) ' in ua: g.webview = True - else: g.webview = False - - if 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua: g.inferior_browser = True - else: g.inferior_browser = False - + g.webview = '; wv) ' in ua + g.inferior_browser = 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua or ' firefox/' in ua @app.teardown_appcontext def teardown_request(error): @@ -125,4 +120,4 @@ if app.config["SERVER_NAME"] == 'localhost': elif "load_chat" in argv: from files.routes.chat import * else: - from files.routes import * \ No newline at end of file + from files.routes import * diff --git a/files/templates/header.html b/files/templates/header.html index 504ff89a5..48abf5007 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -1,5 +1,5 @@ -