IE11 is no longer supported, no need to shim includes (#3321)

This commit is contained in:
Rubén Rincón Blanco
2022-02-04 14:37:57 +01:00
committed by GitHub
parent 42c7b2b694
commit 2978b90ee5

View File

@@ -65,19 +65,6 @@ var hasUIBeenReset = false;
var simpleCooks = new SimpleCook();
var historyWidget = new HistoryWidget();
// Polyfill includes for IE11 - From MDN
if (!String.prototype.includes) {
String.prototype.includes = function (search, start) {
if (search instanceof RegExp) {
throw TypeError('first argument must not be a RegExp');
}
if (start === undefined) {
start = 0;
}
return this.indexOf(search, start) !== -1;
};
}
function setupSettings(hub) {
var eventHub = hub.layout.eventHub;
var defaultSettings = {