fixed wrong filetypes

This commit is contained in:
Djkato 2022-05-07 20:45:47 +02:00
parent 77360a0f92
commit e411dc945e

View file

@ -35,7 +35,7 @@ if (inputList[0] == "-preset") {
file = file[file.length - 1] file = file[file.length - 1]
file = file.split(".") file = file.split(".")
fileTypes.push(file[1]) fileTypes.push(file[file.length - 1])
fileNames.push(file[0]) fileNames.push(file[0])
} }
} }
@ -50,7 +50,7 @@ else {
file = file[file.length - 1] file = file[file.length - 1]
file = file.split(".") file = file.split(".")
fileTypes.push(file[1]) fileTypes.push(file[file.length - 1])
fileNames.push(file[0]) fileNames.push(file[0])
} }
} }