mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Simplify safe url construction
This commit is contained in:
committed by
Dannon Baker
parent
a85ef7c061
commit
624f603278
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user