-- 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: 5f7ea43a11fdb8fae6185e3a26c7f4dc336d37c2:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 5f7ea43a11fdb8fae6185e3a26c7f4dc336d37c2
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Thu Oct 19 20:49:17 2017 -0700

    Wait until later in the init process to autoload

diff --git a/scripts/janusweb.js b/scripts/janusweb.js

index 1d37c07cf8cbdad8266e795fe49b0cf80ecb19cc..

index ..c4ff0717a308d5fb65b8b5f1d10198725c78a93c 100644

--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -231,9 +231,6 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
       var player = this.engine.client.player;
       //setTimeout(elation.bind(this, this.load, starturl, true), 5000);
       //this.initScripting();
-      if (this.autoload) {
-        this.load(starturl, true);
-      }
       this.userId = player.getUsername();
       player.player_id = this.userId; // FIXME - player spawns without an id, so we fix it up here
       window.player = player.getProxyObject();
@@ -241,6 +238,10 @@ elation.require(['janusweb.config', 'engine.things.generic','janusweb.remoteplay
         this.network.enable(player);
       }

+      if (this.autoload) {
+        this.load(starturl, true);
+      }
+
       if (this.showchat) {
         this.chat = elation.janusweb.chat({append: document.body, client: this.engine.client, network: this.network});
       }

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

-- Response ended

-- Page fetched on Sun Jun 2 15:14:33 2024