From 82bc32d8aa432de21f00477b7070bc782ff9844f Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 29 Jun 2023 22:09:33 +0300 Subject: [PATCH] fix last commit --- files/assets/js/bottom.js | 2 +- files/templates/header.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 826993719..e87d663b7 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -235,7 +235,7 @@ for (const input of inputs) { }; } -if (!('serviceWorker' in navigator && 'PushManager' in window)) { +if (!('serviceWorker' in navigator && 'PushManager' in window) || (gbrowser == 'iphone' && !is_pwa)) { let e = document.getElementById("enable-push-nav-item"); if (e) { e.classList.add('d-none') diff --git a/files/templates/header.html b/files/templates/header.html index 99da430a8..ce999b63f 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -239,10 +239,6 @@ Settings - - {% if g.browser == 'iphone' %} - Enable push notifications - {% endif %} @@ -309,6 +305,10 @@ Mobile app {% endif %} + {% if g.browser == 'iphone' %} + Enable push notifications + {% endif %} +