fix constness
This commit is contained in:
parent
9701fd32b7
commit
bffd5bb891
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ export function decryptFile(file) {
|
||||||
// they introduce XSS attacks if the Blob URI is viewed directly in the
|
// they introduce XSS attacks if the Blob URI is viewed directly in the
|
||||||
// browser (e.g. by copying the URI into a new tab or window.)
|
// browser (e.g. by copying the URI into a new tab or window.)
|
||||||
// See warning at top of file.
|
// See warning at top of file.
|
||||||
const mimetype = file.mimetype ? file.mimetype.split(";")[0].trim() : '';
|
let mimetype = file.mimetype ? file.mimetype.split(";")[0].trim() : '';
|
||||||
if (!ALLOWED_BLOB_MIMETYPES[mimetype]) {
|
if (!ALLOWED_BLOB_MIMETYPES[mimetype]) {
|
||||||
mimetype = 'application/octet-stream';
|
mimetype = 'application/octet-stream';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue