add set_user_data to fakemobileclient.js

This commit is contained in:
Laura Klünder 2018-11-26 01:41:32 +01:00
parent d4f8675668
commit 5bb4560c82
3 changed files with 7 additions and 2 deletions

View file

@ -6,5 +6,5 @@ class MobileclientMiddleware:
self.get_response = get_response
def __call__(self, request):
request.mobileclient = 'c3navclient' in request.META['HTTP_USER_AGENT']
request.mobileclient = 'c3navclient' in request.META['HTTP_USER_AGENT'] or 'fakemobileclient' in request.GET
return self.get_response(request)