|
|
@@ -101,7 +101,7 @@ this.SingleFileBrowser = this.SingleFileBrowser || (() => {
|
|
|
if (contentType) {
|
|
|
const matchContentType = contentType.toLowerCase().split(";");
|
|
|
contentType = matchContentType[0].trim();
|
|
|
- if (contentType.indexOf("/") <= 0) {
|
|
|
+ if (!contentType.includes("/")) {
|
|
|
contentType = null;
|
|
|
}
|
|
|
const charsetValue = matchContentType[1] && matchContentType[1].trim();
|