restore reload icon for legacy app users

pull/2/head
Aevann1 2022-11-22 23:34:33 +02:00
parent 6a6b4c46b8
commit 9e89166e2f
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@ def before_request():
if not get_setting('Bots') and request.headers.get("Authorization"): abort(403)
g.db = db_session()
g.webview = '; wv) ' in ua
if ' firefox/' in ua:
g.type = 'firefox'

View File

@ -98,7 +98,11 @@
</form>
</div>
{% endif %}
{% if g.webview %}
<button type="button" class="mobile-nav-icon d-md-none" onclick="location.reload()"><i class="fas fa-arrow-rotate-right align-middle text-gray-500 black"></i></button>
{% endif %}
{% if SITE_NAME == 'PCM' %}
<a class="mobile-nav-icon d-md-none" href="/live" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Live"><i class="fas fa-circle align-middle black live-circle"></i></a>
{% endif %}