repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 088c510aa2a3adc296b1778b4af9300e05ddc595:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 088c510aa2a3adc296b1778b4af9300e05ddc595
Author: James Baicoianu 
Date:   Wed Feb 26 09:38:14 2020 -0800

    Fix autoload logic and whitespace

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index 25b8b04d61bc6e6c5ebf2aa1b7aa3c9262e6b8b8..
index ..25663730b32e80f365820b065b4d6104cc8e07b6 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -108,14 +108,14 @@ elation.require([
         // TODO - this should be config-driven
         this.registerAdditionalElements(['raycaster']);

-      if (this.networking) {
-        this.network = elation.janusweb.multiplayermanager({
-          janusweb: this,
-          server: this.server,
-          player: this.engine.client.player
-        });
-        this.network.enable(this.engine.client.player);
-      }
+        if (this.networking) {
+          this.network = elation.janusweb.multiplayermanager({
+            janusweb: this,
+            server: this.server,
+            player: this.engine.client.player
+          });
+          this.network.enable(this.engine.client.player);
+        }

         this.initRoom();
       });
@@ -276,7 +276,7 @@ elation.require([
     this.initRoom = function() {
       var starturl = this.getStartURL();

-      if (this.autoload || starturl != this.properties.homepage) {
+      if (this.autoload) {
         this.load(starturl, true);
       }
     }

-----END OF PAGE-----