mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user