Skip to content
This repository was archived by the owner on Jan 25, 2025. It is now read-only.

Commit 6e35ace

Browse files
committed
Remove IE polyfills
1 parent 5229086 commit 6e35ace

File tree

5 files changed

+1
-34
lines changed

5 files changed

+1
-34
lines changed

gulp/tasks/copy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ module.exports = function (gulp, plugins, config) {
66
.pipe(gulp.dest(config.build));
77
gulp.src(['polyfill.js'])
88
.pipe(gulp.dest(config.build + '/vendor'));
9-
gulp.src(['node_modules/promise-polyfill/dist/polyfill.js'])
10-
.pipe(gulp.dest(config.build + '/vendor/promise'));
119
return gulp.src(['assets/fonts/*', 'assets/icons/fonts/*'])
1210
.pipe(gulp.dest(config.build + '/fonts'));
1311
};

html/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<!-- contents of html partials will be injected here -->
3131
<!-- endinject -->
3232
<script src="vendor/polyfill.js" inline></script>
33-
<script src="vendor/promise/polyfill.js" inline></script>
3433
<script src="app.js"></script>
3534
</head>
3635
<body>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"moment": "^2.26.0",
5656
"navigo": "^7.1.2",
5757
"node-polyglot": "2.2.2",
58-
"promise-polyfill": "^8.1.3",
5958
"rbush": "^3.0.1",
6059
"requirejs": "^2.3.6",
6160
"snabbdom": "^0.7.4"

polyfill.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
'use strict';
2-
// Polyfills for (old) mobile browsers and IE 11
2+
// Polyfills for (old) firefox 75
33
// From https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/
4-
if (!String.prototype.includes) {
5-
String.prototype.includes = function () {
6-
return String.prototype.indexOf.apply(this, arguments) !== -1;
7-
};
8-
}
9-
104
if (typeof Object.assign !== 'function') {
115
Object.assign = function (target, varArgs) { // .length of function is 2
126
if (target == null) { // TypeError if undefined or null
@@ -31,24 +25,6 @@ if (typeof Object.assign !== 'function') {
3125
};
3226
}
3327

34-
// eslint-disable-next-line consistent-return
35-
(function () {
36-
if (typeof window.CustomEvent === 'function') {
37-
return false;
38-
}
39-
40-
function CustomEvent(event, params) {
41-
params = params || { bubbles: false, cancelable: false, detail: undefined };
42-
var evt = document.createEvent('CustomEvent');
43-
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
44-
return evt;
45-
}
46-
47-
CustomEvent.prototype = window.Event.prototype;
48-
49-
window.CustomEvent = CustomEvent;
50-
})();
51-
5228
if ('serviceWorker' in navigator) {
5329
navigator.serviceWorker.register('service-worker.js');
5430
}

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5387,11 +5387,6 @@ progress@^2.0.0:
53875387
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
53885388
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
53895389

5390-
promise-polyfill@^8.1.3:
5391-
version "8.1.3"
5392-
resolved "https://registry.yarnpkg.com/promise-polyfill/-/promise-polyfill-8.1.3.tgz#8c99b3cf53f3a91c68226ffde7bde81d7f904116"
5393-
integrity sha512-MG5r82wBzh7pSKDRa9y+vllNHz3e3d4CNj1PQE4BQYxLme0gKYYBm9YENq+UkEikyZ0XbiGWxYlVw3Rl9O/U8g==
5394-
53955390
prop-types@^15.7.2:
53965391
version "15.7.2"
53975392
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"

0 commit comments

Comments
 (0)