repo: janusweb action: commit revision: path_from: revision_from: b7768bb916f7c78ebf4964a05f0c05d7b27e66d7: path_to: revision_to:
commit b7768bb916f7c78ebf4964a05f0c05d7b27e66d7 Author: James BaicoianuDate: 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
--- 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-----