Fixed #116, overall safer code in ModalVault

This commit is contained in:
Simon Cambier
2022-10-24 22:44:43 +02:00
parent d62fff6ce4
commit 6f7d454470
2 changed files with 18 additions and 11 deletions

View File

@@ -192,7 +192,7 @@ export function getPlaintextExtensions(): string[] {
export function getExtension(path: string): string {
const split = path.split('.')
return split[split.length - 1]
return split[split.length - 1] ?? ''
}
export function makeMD5(data: BinaryLike): string {