55df1a106590a6c9fd7e3cca90fa6bbad8eb50c4 max Thu Jan 29 05:26:21 2026 -0800 Revert "Reapply "changing superTrack TrackUi quite a bit." This reverts commit ce138738e24cb6e84502440b79490c412f6786f8. diff --git src/hg/js/utils.js src/hg/js/utils.js index bbdee5d271a..57acd7d7cf2 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -4561,19 +4561,15 @@ var w = window.open(''); w.document.write('<a class="button" HREF="'+url+'" TARGET=_blank><button>Download File</button></a> '); w.document.write('<button id="closeWindowLink" HREF="#">Close Tab</button>'); w.onload = function(ev) { // Attach event listeners after the new window is loaded w.document.getElementById('closeWindowLink').addEventListener('click', function() { w.close(); } ); }; fetch(url).then(response => response.text()) // Read the response as text .then(function(text) { w.document.write('<pre>' + text + '</pre>'); // Display the content w.document.close(); // Close the document to finish rendering }) .catch(error => console.error('Error fetching BED file:', error)); } -function capitalizeFirstLetter(string) { - return string.charAt(0).toUpperCase() + string.slice(1); -} -