mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(angular): setup config properly (#24028)
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import { NgZone } from '@angular/core';
|
import { NgZone } from '@angular/core';
|
||||||
import { initialize } from '@ionic/core';
|
import { setupConfig } from '@ionic/core';
|
||||||
import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
|
import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
|
||||||
|
|
||||||
import { Config } from './providers/config';
|
import { Config } from './providers/config';
|
||||||
@ -11,7 +11,7 @@ export const appInitialize = (config: Config, doc: Document, zone: NgZone) => {
|
|||||||
const win: IonicWindow | undefined = doc.defaultView as any;
|
const win: IonicWindow | undefined = doc.defaultView as any;
|
||||||
if (win && typeof (window as any) !== 'undefined') {
|
if (win && typeof (window as any) !== 'undefined') {
|
||||||
|
|
||||||
initialize({
|
setupConfig({
|
||||||
...config,
|
...config,
|
||||||
_zoneGate: (h: any) => zone.run(h)
|
_zoneGate: (h: any) => zone.run(h)
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user