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

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Genbu Hase 2018-09-24 12:45:58 +09:00 committed by Eugen Rochko
parent 1889526e23
commit 8b61683f9e
1 changed files with 1 additions and 1 deletions

View File

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