Fix preference for web notifications

このコミットが含まれているのは:
Omar Roth 2019-06-01 18:06:44 -05:00
コミット 576067c1e5
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B8254FB7EC3D37F2
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -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>