diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-01 18:06:44 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-01 18:06:44 -0500 |
| commit | 576067c1e5d3586b0773035f935addc0e0724396 (patch) | |
| tree | 53097dd0c49626e3fe7c1852e21968b5508ced5a /src | |
| parent | e23bab0103ee7dccd94b086ee6f48dd8970388dc (diff) | |
| download | invidious-576067c1e5d3586b0773035f935addc0e0724396.tar.gz invidious-576067c1e5d3586b0773035f935addc0e0724396.tar.bz2 invidious-576067c1e5d3586b0773035f935addc0e0724396.zip | |
Fix preference for web notifications
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/preferences.ecr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/views/preferences.ecr b/src/invidious/views/preferences.ecr index e9d2d84c..232ce224 100644 --- a/src/invidious/views/preferences.ecr +++ b/src/invidious/views/preferences.ecr @@ -166,8 +166,8 @@ function update_value(element) { <input name="notifications_only" id="notifications_only" type="checkbox" <% if preferences.notifications_only %>checked<% end %>> </div> - <% # Conditions for supporting web notifications %> - <% if CONFIG.use_pubsub_feeds && (Kemal.config.ssl || config.https_only) %> + <% # Web notifications are only supported over HTTPS %> + <% if Kemal.config.ssl || config.https_only %> <div class="pure-control-group"> <a href="#" onclick="Notification.requestPermission()"><%= translate(locale, "Enable web notifications") %></a> </div> |
