Fix For Undefined

This commit is contained in:
thororen1234 2024-10-27 18:32:25 -04:00
parent af40b89e65
commit 7e9a71d5ad

View file

@ -122,7 +122,7 @@ export default definePlugin({
const fileName = extIdx !== -1 ? file.substring(0, extIdx) : "";
let ext = extIdx !== -1 ? file.slice(extIdx) : "";
if (Settings.plugins.FixFileExtensions.enabled) {
ext = reverseExtensionMap[ext];
ext = reverseExtensionMap[ext] || ext;
}
if ((upload.anonymise ?? settings.store.anonymiseByDefault) === false) return fileName + ext;