Skip to content

Commit a1995e6

Browse files
bertdeblockknownasilya
authored andcommitted
Drop support for IE 11
1 parent e579b03 commit a1995e6

File tree

3 files changed

+1
-35
lines changed

3 files changed

+1
-35
lines changed

addon/src/services/page-title.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,11 @@ export default class PageTitleService extends Service {
241241
/**
242242
* Find token by id
243243
*
244-
* IE11 compatible approach due to lack of Array.find support
245-
*
246244
* @param {String} id
247245
* @private
248246
*/
249247
_findTokenById(id) {
250-
return this.tokens.filter((token) => {
251-
return token.id === id;
252-
})[0];
248+
return this.tokens.find((token) => token.id === id);
253249
}
254250

255251
updateFastbootTitle(toBeTitle) {

docs/config/targets.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ const browsers = [
66
'last 1 Safari versions',
77
];
88

9-
// Ember's browser support policy is changing, and IE11 support will end in
10-
// v4.0 onwards.
11-
//
12-
// See https://deprecations.emberjs.com/v3.x#toc_3-0-browser-support-policy
13-
//
14-
// If you need IE11 support on a version of Ember that still offers support
15-
// for it, uncomment the code block below.
16-
17-
const isCI = Boolean(process.env.CI);
18-
const isProduction = process.env.EMBER_ENV === 'production';
19-
20-
if (isCI || isProduction) {
21-
browsers.push('ie 11');
22-
}
23-
249
module.exports = {
2510
browsers,
2611
node: 'current', // This is here to avoid "SyntaxError: Unexpected token '.'" from fastboot ember-app.js

test-app/config/targets.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ const browsers = [
66
'last 1 Safari versions',
77
];
88

9-
// Ember's browser support policy is changing, and IE11 support will end in
10-
// v4.0 onwards.
11-
//
12-
// See https://deprecations.emberjs.com/v3.x#toc_3-0-browser-support-policy
13-
//
14-
// If you need IE11 support on a version of Ember that still offers support
15-
// for it, uncomment the code block below.
16-
17-
const isCI = Boolean(process.env.CI);
18-
const isProduction = process.env.EMBER_ENV === 'production';
19-
20-
if (isCI || isProduction) {
21-
browsers.push('ie 11');
22-
}
23-
249
module.exports = {
2510
browsers,
2611
node: 'current', // This is here to avoid "SyntaxError: Unexpected token '.'" from fastboot ember-app.js

0 commit comments

Comments
 (0)