diff --git a/files/assets/images/PCM/app-chromium-lo-1.webp b/files/assets/images/PCM/app-chromium-lo-1.webp new file mode 100644 index 000000000..cbab3a0f9 Binary files /dev/null and b/files/assets/images/PCM/app-chromium-lo-1.webp differ diff --git a/files/assets/images/PCM/app-chromium-lo-2.webp b/files/assets/images/PCM/app-chromium-lo-2.webp new file mode 100644 index 000000000..8521b8e2c Binary files /dev/null and b/files/assets/images/PCM/app-chromium-lo-2.webp differ diff --git a/files/assets/images/WPD/app-chromium-lo-1.webp b/files/assets/images/WPD/app-chromium-lo-1.webp new file mode 100644 index 000000000..6ebd6ab91 Binary files /dev/null and b/files/assets/images/WPD/app-chromium-lo-1.webp differ diff --git a/files/assets/images/WPD/app-chromium-lo-2.webp b/files/assets/images/WPD/app-chromium-lo-2.webp new file mode 100644 index 000000000..0dfd768ea Binary files /dev/null and b/files/assets/images/WPD/app-chromium-lo-2.webp differ diff --git a/files/assets/images/rDrama/app-chromium-lo-1.webp b/files/assets/images/rDrama/app-chromium-lo-1.webp new file mode 100644 index 000000000..3b1d09db8 Binary files /dev/null and b/files/assets/images/rDrama/app-chromium-lo-1.webp differ diff --git a/files/assets/images/rDrama/app-chromium-lo-2.webp b/files/assets/images/rDrama/app-chromium-lo-2.webp new file mode 100644 index 000000000..48d77b380 Binary files /dev/null and b/files/assets/images/rDrama/app-chromium-lo-2.webp differ diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index 649f11493..59bb74738 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -32,13 +32,6 @@ def before_request(): g.webview = '; wv) ' in ua - if ' firefox/' in ua: - g.type = 'firefox' - elif 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua: - g.type = 'apple' - else: - g.type = 'chromium' - g.is_tor = request.headers.get("cf-ipcountry") == "T1" request.path = request.path.rstrip('/') diff --git a/files/templates/app.html b/files/templates/app.html index b685680c2..c14d697e5 100644 --- a/files/templates/app.html +++ b/files/templates/app.html @@ -4,10 +4,21 @@
How to install {{SITE_NAME}}'s mobile app + {% set ua = g.agent.lower() %} + {% if ' firefox/' in ua %} + {% set type = 'firefox' %} + {% elif 'iphone' in ua or 'ipad' in ua or 'ipod' in ua or 'mac os' in ua %} + {% set type = 'apple' %} + {% elif v %} + {% set type = 'chromium' %} + {% else %} + {% set type = 'chromium-lo' %} + {% endif %} +
First step:
- First step + First step
Second step:
- Second step + Second step
{% endblock %}