APM-59-Fix-JS-error-while-selecting-file-at-IE11
includes method replaced by indexOf method as IE11 does not support
includes method
}
function isFolder(selection) {
- return selection.items._container.innerHTML.includes('folder');
+ return selection.items._container.innerHTML.indexOf('folder') > -1;
}
function isScriptInvalidOrNonExecutable(selection) {
- return selection.items._container.innerHTML.includes('script-is-invalid');
+ return selection.items._container.innerHTML.indexOf('script-is-invalid') > -1;
}
})(window, jQuery);
