fixed wrong filetypes
This commit is contained in:
parent
77360a0f92
commit
e411dc945e
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue