diff options
author | Genbu Hase <hasegenbu@gmail.com> | 2018-09-24 12:45:58 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-09-24 05:45:58 +0200 |
commit | 8b61683f9ea3ebbfc4658fb3effc82f0a9eb7d47 (patch) | |
tree | 6b4b86d81acdc6bb59f5e7480061bf4f5d25a27d | |
parent | 1889526e23ce41a37395fdcf89bd415bb2f7546f (diff) |
Fix a problem about generating an url of notifications (#8758)
-rw-r--r-- | app/javascript/mastodon/service_worker/web_push_notifications.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/service_worker/web_push_notifications.js b/app/javascript/mastodon/service_worker/web_push_notifications.js index d61d916b1..80a4fb329 100644 --- a/app/javascript/mastodon/service_worker/web_push_notifications.js +++ b/app/javascript/mastodon/service_worker/web_push_notifications.js @@ -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({ |