mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix preference for web notifications
This commit is contained in:
parent
e23bab0103
commit
576067c1e5
1 changed files with 2 additions and 2 deletions
|
@ -166,8 +166,8 @@ function update_value(element) {
|
||||||
<input name="notifications_only" id="notifications_only" type="checkbox" <% if preferences.notifications_only %>checked<% end %>>
|
<input name="notifications_only" id="notifications_only" type="checkbox" <% if preferences.notifications_only %>checked<% end %>>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% # Conditions for supporting web notifications %>
|
<% # Web notifications are only supported over HTTPS %>
|
||||||
<% if CONFIG.use_pubsub_feeds && (Kemal.config.ssl || config.https_only) %>
|
<% if Kemal.config.ssl || config.https_only %>
|
||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
<a href="#" onclick="Notification.requestPermission()"><%= translate(locale, "Enable web notifications") %></a>
|
<a href="#" onclick="Notification.requestPermission()"><%= translate(locale, "Enable web notifications") %></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue