mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 01:48:06 +01:00
Fix a problem about generating an url of notifications (#8758)
This commit is contained in:
parent
1889526e23
commit
8b61683f9e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue