starting to make prrByVaccineTable downloadable
This commit is contained in:
@@ -68,4 +68,11 @@ class UIUtils {
|
||||
static isSearchParamYES(urlParams, searchParam) {
|
||||
return UIUtils.getSearchParam(urlParams, searchParam, 'NO').toUpperCase() == 'YES';
|
||||
}
|
||||
|
||||
static downloadUrlAsFilename(url, filename) {
|
||||
const a = document.createElement('a');
|
||||
a.setAttribute('href', url);
|
||||
a.setAttribute('download', filename);
|
||||
a.click();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user