Skip to content

Commit

Permalink
fix: Properly set URL for settings check if running in a subdirectory
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Sep 15, 2024
1 parent ba901e8 commit fb6f25f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/settings/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ export default {
await this.verifyConnection(data)
},
async verifyConnection(data) {
const path = '/socket.io'
const socket = io(this.serverUrl, {
const url = new URL(this.serverUrl)
const path = url.pathname.replace(/\/$/, '') + '/socket.io'
const socket = io(url.origin, {
path,
withCredentials: true,
auth: {
Expand Down

0 comments on commit fb6f25f

Please sign in to comment.