1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #363 - Downloading data just returns a file with a json null data response

This commit is contained in:
Jon Ziebell 2022-08-14 21:41:04 -04:00
parent f84665ddd6
commit 7464630fb5

View File

@ -274,7 +274,7 @@ beestat.component.modal.download_data.prototype.get_buttons_ = function() {
.format()
};
window.location.href = '/api/?resource=runtime&method=download&arguments=' + JSON.stringify(download_arguments) + '&api_key=' + beestat.api.api_key;
window.location.href = '/api/?resource=runtime&method=download&arguments=' + encodeURIComponent(JSON.stringify(download_arguments)) + '&api_key=' + beestat.api.api_key;
self.dispose();
});