Created by: michaltk
There was a check for supported file types added but it’s checking for supportedFileTypes.indexOf(path.extname(handler)) !== '-1'
,
indexOf
returns a number -1
not a string '-1'
, so this check was always true.
Updated to number -1
instead of string.