1
Fork 0

Fix IE11 search

This commit is contained in:
Guillaume Gomez 2018-03-23 21:27:15 +01:00
parent 55e1104dd9
commit 90588a9086

View file

@ -49,6 +49,13 @@
var themesWidth = null;
if (!String.prototype.startsWith) {
String.prototype.startsWith = function(searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
};
}
function hasClass(elem, className) {
if (elem && className && elem.className) {
var elemClass = elem.className;