Skip to content
Snippets Groups Projects
Commit aa857eed authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

ABSOLUTELY LAST (?)

parent 016dabea
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,8 @@ def index(request):
# Check if user is on stock Android browser, which performs poorly with OpenLayers
user_is_stock_android = False
user_agent = request.META['HTTP_USER_AGENT']
print user_agent
if user_agent.find("Android") > 0:
#print user_agent
if user_agent.find("Android") >= 0 and user_agent.find("Windows") < 0:
chrome_index = user_agent.find("Chrome")
if chrome_index < 0:
user_is_stock_android = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment