1 u

typo

one u

typo

one u

typo
This commit is contained in:
jipexu
2021-06-25 13:50:35 +02:00
committed by jeanpierre
parent 16aed36008
commit bb71ee6a71
4 changed files with 4 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ function download(fullpath, filename) {
}) })
.then(function (blob) { .then(function (blob) {
if (navigator.msSaveBlob) { if (navigator.msSaveBlob) {
// link download attribuute does not work on MS browsers // link download attribute does not work on MS browsers
navigator.msSaveBlob(blob, filename); navigator.msSaveBlob(blob, filename);
} else { } else {
link.href = URL.createObjectURL(blob); link.href = URL.createObjectURL(blob);

View File

@@ -108,7 +108,7 @@ function download(fullpath, filename) {
}) })
.then(function (blob) { .then(function (blob) {
if (navigator.msSaveBlob) { if (navigator.msSaveBlob) {
// link download attribuute does not work on MS browsers // link download attribute does not work on MS browsers
navigator.msSaveBlob(blob, filename); navigator.msSaveBlob(blob, filename);
} else { } else {
link.href = URL.createObjectURL(blob); link.href = URL.createObjectURL(blob);

View File

@@ -102,7 +102,7 @@ function download(fullpath, filename) {
}) })
.then(function (blob) { .then(function (blob) {
if (navigator.msSaveBlob) { if (navigator.msSaveBlob) {
// link download attribuute does not work on MS browsers // link download attribute does not work on MS browsers
navigator.msSaveBlob(blob, filename); navigator.msSaveBlob(blob, filename);
} else { } else {
link.href = URL.createObjectURL(blob); link.href = URL.createObjectURL(blob);

View File

@@ -53,7 +53,7 @@ document.getElementById('export-png').addEventListener('click', function () {
} }
); );
if (navigator.msSaveBlob) { if (navigator.msSaveBlob) {
// link download attribuute does not work on MS browsers // link download attribute does not work on MS browsers
navigator.msSaveBlob(mapCanvas.msToBlob(), 'map.png'); navigator.msSaveBlob(mapCanvas.msToBlob(), 'map.png');
} else { } else {
const link = document.getElementById('image-download'); const link = document.getElementById('image-download');