-- 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: 89b645b2219faf9a316e498914e87104c80e2c39:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 89b645b2219faf9a316e498914e87104c80e2c39
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sat Jul 18 02:40:17 2020 -0700

    Reload room if unloaded, set title when activating room

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

index 7dba2f10b9b91d9e15cd2f7b5b1cbde373682955..

index ..bdd979fed3673cb656572402858e114bf2c53c32 100644

--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -380,11 +380,16 @@ elation.require([
         }

         if (!this.currentroom.loaded) {
+          if (this.currentroom.completed) {
+            // Room was previously loaded but deallocated, reload it
+            this.currentroom.load();
+          }
           elation.events.add(this.currentroom, 'janus_room_load', elation.bind(this, function() {
             this.currentroom.enable();
           }));
         } else {
           this.currentroom.enable();
+          this.currentroom.setTitle(this.currentroom.title);
         }
         //this.enter_room(url);
       } else {

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

-- Response ended

-- Page fetched on Sun Jun 2 17:35:24 2024