File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/messaging/src/controllers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,13 +273,13 @@ function getNotificationData(
273
273
async function getWindowClient ( url : string ) : Promise < WindowClient | null > {
274
274
// Use URL to normalize the URL when comparing to windowClients.
275
275
// This at least handles whether to include trailing slashes or not
276
- const parsedURL = new URL ( url , self . location . href ) . href ;
276
+ const parsedURL = new URL ( url , self . location . href ) ;
277
277
278
278
const clientList = await getClientList ( ) ;
279
279
280
280
for ( const client of clientList ) {
281
- const parsedClientUrl = new URL ( client . url , self . location . href ) . href ;
282
- if ( parsedClientUrl === parsedURL ) {
281
+ const parsedClientUrl = new URL ( client . url , self . location . href ) ;
282
+ if ( parsedClientUrl . host === parsedURL . host ) {
283
283
return client ;
284
284
}
285
285
}
You can’t perform that action at this time.
0 commit comments