a6e5c99f562491a34c8b1d69663b9a0c46c9adfe chmalee Tue Jan 14 15:19:38 2025 -0800 Make hubspace tusd endpoint defined by hg.conf variable hubSpaceTusdEndpoint diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index 00aa012..b5555de 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -90,34 +90,32 @@ fileName: file.meta.name, fileSize: file.size, lastModified: file.data.lastModified, }); } return doUpload; }, }); var hubCreate = (function() { let uiState = { // our object for keeping track of the current UI and what to do userUrl: "", // the web accesible path where the uploads are stored for this user }; function getTusdEndpoint() { - // return the port and basepath of the tusd server - // NOTE: the port and basepath are specified in hg.conf - //let currUrl = parseUrl(window.location.href); - return "https://hgwdev-hubspace.gi.ucsc.edu/files"; + // this variable is set by hgHubConnect and comes from hg.conf value + return tusdEndpoint; } let extensionMap = { "bigBed": [".bb", ".bigbed"], "bam": [".bam"], "vcf": [".vcf"], "vcfTabix": [".vcf.gz", "vcf.bgz"], "bigWig": [".bw", ".bigwig"], "hic": [".hic"], "cram": [".cram"], "bigBarChart": [".bigbarchart"], "bigGenePred": [".bgp", ".biggenepred"], "bigMaf": [".bigmaf"], "bigInteract": [".biginteract"], "bigPsl": [".bigpsl"],