Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add mobile context for offline compression
Scott Peshak46383b14fcba
diff --git a/wger/settings_global.py b/wger/settings_global.pyindex 442011df1..507b77e66 100644--- a/wger/settings_global.py+++ b/wger/settings_global.py@@ -324,6 +324,10 @@ if USE_S3:COMPRESS_URL = STATIC_URLCOMPRESS_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'COMPRESS_OFFLINE = True+ COMPRESS_OFFLINE_CONTEXT = [+ {'request': {'user_agent': {'is_mobile': True}}, 'STATIC_URL': STATIC_URL},+ {'request': {'user_agent': {'is_mobile': False}}, 'STATIC_URL': STATIC_URL}+ ]else:STATIC_URL = '/static/'