forked from MarseyWorld/MarseyWorld
remove unused g attribute
parent
c762c84bde
commit
c47dae86ec
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue