forked from rDrama/rDrama
fix last commit
parent
f3f01bad96
commit
82bc32d8aa
|
@ -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");
|
let e = document.getElementById("enable-push-nav-item");
|
||||||
if (e) {
|
if (e) {
|
||||||
e.classList.add('d-none')
|
e.classList.add('d-none')
|
||||||
|
|
|
@ -240,10 +240,6 @@
|
||||||
|
|
||||||
<input hidden id="VAPID_PUBLIC_KEY" value="{{VAPID_PUBLIC_KEY}}">
|
<input hidden id="VAPID_PUBLIC_KEY" value="{{VAPID_PUBLIC_KEY}}">
|
||||||
|
|
||||||
{% if g.browser == 'iphone' %}
|
|
||||||
<a id="enable-push-nav-item-iphone" class="dropdown-item" href="/app"><i class="fas fa-bell fa-fw mr-3 d-none"></i>Enable push notifications</a>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<button id="enable-push-nav-item" type="button" class="dropdown-item" data-nonce="{{g.nonce}}" data-onclick="enablePushNotifications()"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</button>
|
<button id="enable-push-nav-item" type="button" class="dropdown-item" data-nonce="{{g.nonce}}" data-onclick="enablePushNotifications()"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</button>
|
||||||
|
|
||||||
{% if g.browser != 'webview' %}
|
{% if g.browser != 'webview' %}
|
||||||
|
@ -309,6 +305,10 @@
|
||||||
<a class="nav-item nav-link" href="/app" id="mobile-app-nav-item"><i class="fas fa-mobile fa-fw mr-3"></i>Mobile app</a>
|
<a class="nav-item nav-link" href="/app" id="mobile-app-nav-item"><i class="fas fa-mobile fa-fw mr-3"></i>Mobile app</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if g.browser == 'iphone' %}
|
||||||
|
<a id="enable-push-nav-item-iphone" class="nav-item nav-link d-none" href="/app"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<button type="button" class="nav-item nav-link" data-nonce="{{g.nonce}}" data-onclick="enablePushNotifications()"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</button>
|
<button type="button" class="nav-item nav-link" data-nonce="{{g.nonce}}" data-onclick="enablePushNotifications()"><i class="fas fa-bell fa-fw mr-3"></i>Enable push notifications</button>
|
||||||
|
|
||||||
<a class="nav-item nav-link donate-link" rel="nofollow noopener" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
<a class="nav-item nav-link donate-link" rel="nofollow noopener" href="/donate"><i class="fas fa-dollar-sign fa-fw mr-3"></i>Donate</a>
|
||||||
|
|
Loading…
Reference in New Issue