repo: janusweb action: commit revision: path_from: revision_from: 088c510aa2a3adc296b1778b4af9300e05ddc595: path_to: revision_to:
commit 088c510aa2a3adc296b1778b4af9300e05ddc595 Author: James BaicoianuDate: Wed Feb 26 09:38:14 2020 -0800 Fix autoload logic and whitespace diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- 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-----