forked from rDrama/rDrama
1
0
Fork 0
master
Nekobit 2022-05-28 21:55:36 -04:00
parent 57167d0ce9
commit 0ba21fc9b9
1 changed files with 3 additions and 8 deletions

View File

@ -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 *
from files.routes import *