typo
1 u typo one u typo one u typo
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user