Skip to content

Commit

Permalink
Update resources/web/wwi/server.js
Browse files Browse the repository at this point in the history
Co-authored-by: Stefania Pedrazzi <stefaniapedrazzi@users.noreply.github.com>
  • Loading branch information
omichel and stefaniapedrazzi authored May 11, 2020
1 parent 9d7356a commit 27cf75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/web/wwi/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Server { // eslint-disable-line no-unused-vars
// url has one of the following form:
// "ws(s)://cyberbotics1.epfl.ch:80/simple/worlds/simple.wbt", or
// "wss://cyberbotics1.epfl.ch/1999/session
// ?url=webots://github.com/cyberbotics/webots/branch/master/projects/languages/python"
// ?url=webots://github.com/cyberbotics/webots/branch/master/projects/languages/python/worlds/example.wbt"
const n = this.url.indexOf('/session?url=', 6);
// 6 is for skipping the "ws(s)://domain" part of the URL which smallest form is 6 characters long: "ws://a"
if (n === -1) {
Expand Down

0 comments on commit 27cf75c

Please sign in to comment.