File tree Expand file tree Collapse file tree 3 files changed +1
-35
lines changed Expand file tree Collapse file tree 3 files changed +1
-35
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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-
249module . exports = {
2510 browsers,
2611 node : 'current' , // This is here to avoid "SyntaxError: Unexpected token '.'" from fastboot ember-app.js
Original file line number Diff line number Diff 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-
249module . exports = {
2510 browsers,
2611 node : 'current' , // This is here to avoid "SyntaxError: Unexpected token '.'" from fastboot ember-app.js
You can’t perform that action at this time.
0 commit comments