Skip to content

Commit

Permalink
Merge pull request #39 from Thinkofname/swapped-index-of
Browse files Browse the repository at this point in the history
Fix indexOf parameters being swapped
  • Loading branch information
SanderMertens authored Jan 7, 2025
2 parents a8c15be + bdcb5ff commit 34c2f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/flecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ const flecs = {
}

let portIndex = url.indexOf(":"); // first is protocol
portIndex = url.indexOf(portIndex + 1, ":");
portIndex = url.indexOf(":", portIndex + 1);
if (portIndex == -1) {
url += ":27750";
}
Expand Down

0 comments on commit 34c2f4d

Please sign in to comment.