mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 11:44:09 -05:00
IE11 is no longer supported, no need to shim includes (#3321)
This commit is contained in:
committed by
GitHub
parent
42c7b2b694
commit
2978b90ee5
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user