repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 63680a54ec087c3ded0f43b94066ae2b182f9e63:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 63680a54ec087c3ded0f43b94066ae2b182f9e63
Author: James Baicoianu 
Date:   Wed Feb 26 07:26:53 2020 -0800

    Fixed undefined variable error

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index 8e42e5b557286d41c4fea70ba67b3cc4ceec423c..
index ..25b8b04d61bc6e6c5ebf2aa1b7aa3c9262e6b8b8 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -274,7 +274,6 @@ elation.require([
     }

     this.initRoom = function() {
-      var hashargs = elation.url();
       var starturl = this.getStartURL();

       if (this.autoload || starturl != this.properties.homepage) {
@@ -639,6 +638,7 @@ console.log('Register new SYSTEM tag type:', tagname, classobj, extendclass);
       return asset;
     }
     this.getStartURL = function() {
+      var hashargs = elation.url();
       return hashargs['janus.url'] || this.properties.url || this.properties.homepage;
     }
   }, elation.engine.things.generic);

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