Merge pull request #20480 from borkwo/fix/ui-remove-debug-games-download

ui: remove debug logs and guard download API path in gamesDownload
This commit is contained in:
Trevor Fitzgerald
2026-05-18 00:07:20 -04:00
committed by GitHub
+4 -5
View File
@@ -35,11 +35,10 @@ function generateSearchParams(): string {
function update() {
const params = generateSearchParams();
const apiUrl = $('#dl-api-url');
console.log(params);
console.log(apiUrl.find('input'));
apiUrl
.find('input')
.val(`${window.location.protocol}//${window.location.host}${apiUrl.data('apiPath')}?${params}`);
const apiPath = apiUrl.data('apiPath');
if (apiPath) {
apiUrl.find('input').val(`${window.location.protocol}//${window.location.host}${apiPath}?${params}`);
}
const btn = $('#dl-button');
btn.prop('href', btn.prop('href').split('?')[0] + '?' + params);
}