fix weird bug with ts import

This commit is contained in:
2022-06-27 14:51:48 +02:00
parent 3ea630748a
commit a9bc98738e
11 changed files with 34 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
var mime = require('mime-types');
var mime = require('mime');
var algo = 'AES-CBC';
@@ -28,7 +28,7 @@ var download = (button) => {
labelPreparing = button.dataset.labelPreparing,
labelReady = button.dataset.labelReady,
mimeType = button.dataset.mimeType,
extension = mime.extension(mimeType),
extension = mime.getExtension(mimeType),
decryptError = "Error while decrypting file",
fetchError = "Error while fetching file",
key, url
@@ -93,4 +93,4 @@ window.addEventListener('load', function(e) {
initializeButtons(e.target);
});
export { initializeButtons, download };
export { initializeButtons, download };