-- 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: b93223a719ab41aabd8bffb8bb76d563cd6d616d: path_to: revision_to:
commit b93223a719ab41aabd8bffb8bb76d563cd6d616d Author: James Baicoianu <james_github@baicoianu.com> Date: Wed Sep 18 08:05:44 2019 -0700 Moved networking init until after room has loaded diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- a/scripts/janusweb.js +++ b/scripts/janusweb.js @@ -95,14 +95,6 @@ elation.require([ this.mute(); } - 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) { dust.filters.stripunsafe = function(s) { @@ -115,6 +107,16 @@ elation.require([ this.assetpack.executeWhenLoaded(() => { // 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); + } + this.initRoom(); }); }
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:30:28 2024