@@ -2,7 +2,7 @@ import { NgZone } from '@angular/core';
22import type { Config , IonicWindow } from '@ionic/angular/common' ;
33import { raf } from '@ionic/angular/common' ;
44import { setupConfig } from '@ionic/core' ;
5- import { applyPolyfills , defineCustomElements } from '@ionic/core/loader' ;
5+ import { defineCustomElements } from '@ionic/core/loader' ;
66
77// TODO(FW-2827): types
88
@@ -18,19 +18,17 @@ export const appInitialize = (config: Config, doc: Document, zone: NgZone) => {
1818 const aelFn =
1919 '__zone_symbol__addEventListener' in ( doc . body as any ) ? '__zone_symbol__addEventListener' : 'addEventListener' ;
2020
21- return applyPolyfills ( ) . then ( ( ) => {
22- return defineCustomElements ( win , {
23- exclude : [ 'ion-tabs' ] ,
24- syncQueue : true ,
25- raf,
26- jmp : ( h : any ) => zone . runOutsideAngular ( h ) ,
27- ael ( elm , eventName , cb , opts ) {
28- ( elm as any ) [ aelFn ] ( eventName , cb , opts ) ;
29- } ,
30- rel ( elm , eventName , cb , opts ) {
31- elm . removeEventListener ( eventName , cb , opts ) ;
32- } ,
33- } ) ;
21+ return defineCustomElements ( win , {
22+ exclude : [ 'ion-tabs' ] ,
23+ syncQueue : true ,
24+ raf,
25+ jmp : ( h : any ) => zone . runOutsideAngular ( h ) ,
26+ ael ( elm , eventName , cb , opts ) {
27+ ( elm as any ) [ aelFn ] ( eventName , cb , opts ) ;
28+ } ,
29+ rel ( elm , eventName , cb , opts ) {
30+ elm . removeEventListener ( eventName , cb , opts ) ;
31+ } ,
3432 } ) ;
3533 }
3634 } ;
0 commit comments