-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: c3d246f67da87d4e91dac447c8a3c29c240a0acd: path_to: revision_to:
commit c3d246f67da87d4e91dac447c8a3c29c240a0acd Author: James Baicoianu <james_github@baicoianu.com> Date: Thu Apr 26 03:46:49 2018 -0700 Allow networking to be disabled diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- a/scripts/janusweb.js +++ b/scripts/janusweb.js @@ -95,11 +95,13 @@ elation.require([ this.mute(); } - this.network = elation.janusweb.multiplayermanager({ - janusweb: this, - server: this.server, - player: this.engine.client.player - }); + if (this.networking) { + this.network = elation.janusweb.multiplayermanager({ + janusweb: this, + server: this.server, + player: this.engine.client.player + }); + } elation.events.add(this.engine.systems.render.views.main, 'render_view_prerender', elation.bind(this, this.updatePortals)); if (this.urltemplate) { @@ -300,7 +302,9 @@ elation.require([ // FIXME - should be able to spawn without adding to the heirarchy yet this.remove(room); - this.network.registerRoom(room, true); + if (this.networking) { + this.network.registerRoom(room, true); + } this.rooms[room.roomid] = room; //console.log('made new room', url, room);
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:46:06 2024