Skip to content

Commit

Permalink
Merge branch 'feature-project-file' of https://github.com/cyberbotics…
Browse files Browse the repository at this point in the history
…/webots into feature-project-file
  • Loading branch information
omichel committed May 11, 2020
2 parents c9a3d9f + 27cf75c commit 803acc8
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 803acc8

Please sign in to comment.