Skip to content

Commit

Permalink
fix(angular): setup config properly (#24054)
Browse files Browse the repository at this point in the history
resolves #24051 #24052
  • Loading branch information
liamdebeasi committed Oct 11, 2021
1 parent 68a7e43 commit e001f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular/src/app-initialize.ts
@@ -1,5 +1,5 @@
import { NgZone } from '@angular/core';
import { initialize } from '@ionic/core';
import { setupConfig } from '@ionic/core';
import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';

import { Config } from './providers/config';
Expand All @@ -11,7 +11,7 @@ export const appInitialize = (config: Config, doc: Document, zone: NgZone) => {
const win: IonicWindow | undefined = doc.defaultView as any;
if (win && typeof (window as any) !== 'undefined') {

initialize({
setupConfig({
...config,
_zoneGate: (h: any) => zone.run(h)
});
Expand Down

0 comments on commit e001f24

Please sign in to comment.