repo: janusweb action: commit revision: path_from: revision_from: 37953b8971ebe879377406f787fbdec89ecb3eaf: path_to: revision_to:
commit 37953b8971ebe879377406f787fbdec89ecb3eaf Author: James BaicoianuDate: Sun Oct 31 01:44:27 2021 -0700 Add janus.preload() diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- 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-----