forked from rDrama/rDrama
remove unused g attribute
parent
c762c84bde
commit
c47dae86ec
|
@ -28,13 +28,10 @@ def before_request():
|
||||||
|
|
||||||
if ' firefox/' in ua:
|
if ' firefox/' in ua:
|
||||||
g.type = 'firefox'
|
g.type = 'firefox'
|
||||||
g.inferior_browser = True
|
|
||||||
elif 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua:
|
elif 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua:
|
||||||
g.type = 'apple'
|
g.type = 'apple'
|
||||||
g.inferior_browser = True
|
|
||||||
else:
|
else:
|
||||||
g.type = 'chromium'
|
g.type = 'chromium'
|
||||||
g.inferior_browser = False
|
|
||||||
|
|
||||||
g.is_tor = request.headers.get("cf-ipcountry") == "T1"
|
g.is_tor = request.headers.get("cf-ipcountry") == "T1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue