Skip to content

Commit

Permalink
fixup! construct absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jan 30, 2025
1 parent f75f08d commit 1d3897e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/Shared/Services/NotificationChannel.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ export class NotificationChannel {
} catch (e) {
// wasn't a URL - assume it was a relative path alone, which is OK
wsUrl = new URL(window.location.href);
if (!wsUrl.pathname) {
wsUrl.pathname = '';
}
wsUrl.pathname += u;
wsUrl.pathname = u;
}
// set the proper protocol for WebSocket connection upgrade
wsUrl.protocol = wsUrl.protocol.replace('http', 'ws');
Expand Down

0 comments on commit 1d3897e

Please sign in to comment.