Rollup merge of #49312 - GuillaumeGomez:fix-ie11-search, r=QuietMisdreavus
Fix IE11 search Fixes #49263. r? @QuietMisdreavus I got this code from: https://stackoverflow.com/a/30867255/7879548
This commit is contained in:
commit
2580edfba0
@ -49,6 +49,13 @@
|
|||||||
|
|
||||||
var themesWidth = null;
|
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) {
|
function hasClass(elem, className) {
|
||||||
if (elem && className && elem.className) {
|
if (elem && className && elem.className) {
|
||||||
var elemClass = elem.className;
|
var elemClass = elem.className;
|
||||||
|
Loading…
Reference in New Issue
Block a user