This is an automated email from the ASF dual-hosted git repository.
mjumper pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/guacamole-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new af046152 Deploy migration from ASF Gitbox to jsDelivr for dynamic
retrieval of test javascript.
af046152 is described below
commit af046152b0ca3492d429f36773ae8b2d62523c9e
Author: Michael Jumper <[email protected]>
AuthorDate: Wed Jun 7 12:27:17 2023 -0700
Deploy migration from ASF Gitbox to jsDelivr for dynamic retrieval of test
javascript.
---
content/pub/tests/guac/gitguac.js | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/content/pub/tests/guac/gitguac.js
b/content/pub/tests/guac/gitguac.js
index fbd1f379..cbdf0663 100644
--- a/content/pub/tests/guac/gitguac.js
+++ b/content/pub/tests/guac/gitguac.js
@@ -47,12 +47,13 @@ GIT_GUAC.COMMIT = (function getRequestedCommit() {
*/
GIT_GUAC.loadModule = function loadModule(filename) {
- // Construct URL pointing to guacamole-common-js module within ASF git
- var url = 'https://gitbox.apache.org/repos/asf?'
- + 'p=guacamole-client.git;'
- + 'a=blob_plain;'
- + 'f=guacamole-common-js/src/main/webapp/modules/' +
encodeURIComponent(filename) + ';'
- + 'hb=' + encodeURIComponent(GIT_GUAC.COMMIT);
+ // Construct URL pointing to guacamole-common-js module via GitHub and
+ // jsDelivr (ASF gitbox now just redirects to GitHub, which does not serve
+ // executable JavaScript)
+ var url = 'https://cdn.jsdelivr.net/gh'
+ + '/apache/guacamole-client'
+ + '@' + encodeURIComponent(GIT_GUAC.COMMIT)
+ + '/guacamole-common-js/src/main/webapp/modules/' +
encodeURIComponent(filename);
// Dynamically load module
var script = document.createElement('script');