We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a916ec + 3a6f49a commit c43d880Copy full SHA for c43d880
src/slurmcostmanager.js
@@ -852,7 +852,10 @@ function Details({
852
const a = document.createElement('a');
853
a.href = url;
854
a.download = 'details.csv';
855
+ // Append link to DOM so browsers will download the file
856
+ document.body.appendChild(a);
857
a.click();
858
+ document.body.removeChild(a);
859
URL.revokeObjectURL(url);
860
}
861
@@ -918,7 +921,10 @@ function Details({
918
921
919
922
920
923
a.download = 'recharge_invoice.pdf';
924
925
926
927
928
929
} catch (e) {
930
console.error(e);
0 commit comments