diff --git a/www/media/main.js b/www/media/main.js index 804eced6f..bc861d699 100644 --- a/www/media/main.js +++ b/www/media/main.js @@ -30,7 +30,7 @@ define([ var cryptKey = secret.keys && secret.keys.fileKeyStr; var fileId = secret.channel; var hexFileName = Cryptpad.base64ToHex(fileId); - var type = "image/png"; + // var type = "image/png"; var parsed = Cryptpad.parsePadUrl(window.location.href); var defaultName = Cryptpad.getDefaultName(parsed); @@ -105,7 +105,7 @@ define([ * * @type {Array} */ - const allowedMediaTypes = [ + var allowedMediaTypes = [ 'image/png', 'image/jpeg', 'image/jpg',