remove unused g attribute

pull/31/head
justcool393 2022-11-28 21:51:36 -06:00
parent c762c84bde
commit c47dae86ec
1 changed files with 0 additions and 3 deletions

View File

@ -28,13 +28,10 @@ def before_request():
if ' firefox/' in ua:
g.type = 'firefox'
g.inferior_browser = True
elif 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua:
g.type = 'apple'
g.inferior_browser = True
else:
g.type = 'chromium'
g.inferior_browser = False
g.is_tor = request.headers.get("cf-ipcountry") == "T1"