|
@@ -109,7 +109,7 @@ const importSourceFile = () => {
|
|
|
input.addEventListener("change", (e) => {
|
|
input.addEventListener("change", (e) => {
|
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
|
const file = e.target.files[0];
|
|
const file = e.target.files[0];
|
|
|
- var reader = new FileReader();
|
|
|
|
|
|
|
+ const reader = new FileReader();
|
|
|
reader.readAsText(file);
|
|
reader.readAsText(file);
|
|
|
reader.onload = () => {
|
|
reader.onload = () => {
|
|
|
try {
|
|
try {
|
|
@@ -145,6 +145,7 @@ const outExport = () => {
|
|
|
});
|
|
});
|
|
|
exportFile.href = window.URL.createObjectURL(myBlob);
|
|
exportFile.href = window.URL.createObjectURL(myBlob);
|
|
|
exportFile.click();
|
|
exportFile.click();
|
|
|
|
|
+ window.URL.revokeObjectURL(exportFile.href); //avoid memory leak
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|