mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:10:17 +08:00
FIX: Service worker push notifications when cache disabled (#25610)
This commit is contained in:
parent
ee08a8c52b
commit
234795c70e
|
@ -22,8 +22,6 @@ workbox.setConfig({
|
|||
});
|
||||
|
||||
var authUrls = ["auth", "session/sso_login", "session/sso", "srv/status"].map(path => `<%= Discourse.base_path %>/${path}`);
|
||||
var chatRegex = /\/chat\/channel\/(\d+)\//;
|
||||
var inlineReplyIcon = "<%= UrlHelper.absolute("/images/push-notifications/inline_reply.png") %>";
|
||||
|
||||
const oldCacheNames = [
|
||||
"discourse-1", "external-1"
|
||||
|
@ -147,6 +145,9 @@ workbox.routing.registerRoute(
|
|||
);
|
||||
<% end %>
|
||||
|
||||
var chatRegex = /\/chat\/channel\/(\d+)\//;
|
||||
var inlineReplyIcon = "<%= UrlHelper.absolute("/images/push-notifications/inline_reply.png") %>";
|
||||
|
||||
function showNotification(title, body, icon, badge, tag, baseUrl, url) {
|
||||
var notificationOptions = {
|
||||
body: body,
|
||||
|
|
Loading…
Reference in New Issue
Block a user