repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 37953b8971ebe879377406f787fbdec89ecb3eaf:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 37953b8971ebe879377406f787fbdec89ecb3eaf
Author: James Baicoianu 
Date:   Sun Oct 31 01:44:27 2021 -0700

    Add janus.preload()

diff --git a/scripts/janusweb.js b/scripts/janusweb.js
index 023a32806f0f1152c4dc873544e177e72823a115..
index ..e886b38ac3aa86518ca220aa798a3184e2c4641f 100644
--- a/scripts/janusweb.js
+++ b/scripts/janusweb.js
@@ -170,6 +170,8 @@ elation.require([
         navback:           ['function', 'navigateBack'],
         navforward:        ['function', 'navigateForward'],
         load:              ['function', 'navigateTo'],
+        setActiveRoom:     ['function', 'setActiveRoom'],
+        preload:           ['function', 'preload'],
         navhome:           ['function', 'navigateHome'],
         chatsend:          ['function', 'sendChatMessage'],
         sync:              ['function', 'currentroom.sync'],
@@ -407,6 +409,9 @@ elation.require([
         this.load(url, true, null, referrer === false);
       }
     }
+    this.preload = function(url, stripreferrer) {
+      this.load(url, false, null, stripreferrer);
+    }
     this.getFixedURL = function(url) {
       // Our 'clean' client URLs don't contain a : because many services have problems parsing them
       var m = url.match(/^(https?)\/\/?(.*)$/i);

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