fixed request.user_agent().get('is_mobile', False), thanks Jonathan
This commit is contained in:
1 parent
cb47024f2b
commit
7703d959ef
2 files changed
+2
-2
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.8.2-stable+timestamp.2013.12.02.02.05.46
|
||||
Version 2.8.2-stable+timestamp.2013.12.02.10.26.58
|
||||
@@ -144,7 +144,7 @@ if session.is_mobile == 'true':
|
||||
elif session.is_mobile == 'false':
|
||||
is_mobile = False
|
||||
else:
|
||||
is_mobile = request.user_agent().get('is_mobile')
|
||||
is_mobile = request.user_agent().get('is_mobile',False)
|
||||
|
||||
if DEMO_MODE:
|
||||
session.authorized = True
|
||||
|
||||
Reference in new issue
Block a user