Skip to content

Commit

Permalink
Make sure other parts of the url never hit the server
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvanleeuwen committed Mar 13, 2024
1 parent c0a43a8 commit 2e346f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class Data {
Data.instance.#path || 'ws://localhost:3000/socket',
{
params: {
source_url: window.location.href,
source_url: `${window.location.protocol}//${window.location.host}${window.location.pathname}`,
key: Data.instance.#key,
},
reconnectAfterMs: retryWindow,
Expand Down

0 comments on commit 2e346f1

Please sign in to comment.