Skip to content

Commit 8279cec

Browse files
author
ozelot379
committed
Fix
1 parent 0edab95 commit 8279cec

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/webapp/js/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ document.addEventListener("DOMContentLoaded", () => {
8181
}
8282
});
8383

84-
downloadFile(output, path.parse(input[1]).name + ".mcpack");
84+
downloadFile(output, path.parse(input[1]).name + ".mcpack", "application/zip");
8585
}
8686
});

‎src/webapp/js/selector.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ let selectorLastChangeListener = null;
1313
/**
1414
* @param {ArrayBuffer} output
1515
* @param {string} filename
16+
* @param {string} type
1617
*
1718
* @returns {Promise<>}
1819
*/
19-
async function downloadFile(output, filename) {
20-
fileSaver(new Blob([output]), filename);
20+
async function downloadFile(output, filename, type) {
21+
fileSaver(new Blob([output], {type}), filename);
2122
}
2223

2324
/**

0 commit comments

Comments
 (0)