Simplify safe url construction

This commit is contained in:
mahendrapaipuri
2022-12-09 19:53:43 -05:00
committed by Dannon Baker
parent a85ef7c061
commit 624f603278
8 changed files with 8 additions and 16 deletions
@@ -437,8 +437,7 @@ window.bundleEntries.load = function (opt) {
});
};
const slash_cleanup = /(\/)+/g;
const safe_download_url = `${options.root}/${dataset.download_url}`.replace(slash_cleanup, "/");
const safe_download_url = `${options.root}${dataset.download_url}`;
$.ajax({
url: safe_download_url,
success: function(content) {