mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
fix weird bug with ts import
This commit is contained in:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user