Browse Source

Fix a problem about generating an url of notifications (#8758)

pull/4/head
Genbu Hase 5 years ago
committed by Eugen Rochko
parent
commit
8b61683f9e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/service_worker/web_push_notifications.js

+ 1
- 1
app/javascript/mastodon/service_worker/web_push_notifications.js View File

@ -168,7 +168,7 @@ const openUrl = url =>
if (webClients.length !== 0) {
const client = findBestClient(webClients);
const { pathname } = new URL(url);
const { pathname } = new URL(url, self.location);
if (pathname.startsWith('/web/')) {
return client.focus().then(client => client.postMessage({

Loading…
Cancel
Save