repo: janusweb
action: commit
revision: 
path_from: 
revision_from: b7768bb916f7c78ebf4964a05f0c05d7b27e66d7:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit b7768bb916f7c78ebf4964a05f0c05d7b27e66d7
Author: James Baicoianu 
Date:   Sun Jan 30 14:36:04 2022 -0800

    Bypass corsproxy for non-http(s) URLs

diff --git a/scripts/room.js b/scripts/room.js
index 17898d7b2a96d74cfa3568ea6f02793219648382..
index ..27e38dac632f8caf82feceb830f4d962d4ae5412 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -2653,7 +2653,7 @@ console.log('dispatch to parent', event, this, event.target);
       if (!url) url = this.url;
       if (url[0] == '/') {
         url = this.baseurl.replace(/^(https?:\/\/[^\/]+)\/.*$/, '$1') + url;
-      } else if (!url.match(/https?:\/\//i)) {
+      } else if (!url.match(/:\/\//i)) {
         url = this.baseurl + url;
       }
       return url;

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