We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e1596f commit 9cb6c80Copy full SHA for 9cb6c80
angular/src/app-initialize.ts
@@ -5,16 +5,10 @@ import { Config } from './providers/config';
5
import { IonicWindow } from './types/interfaces';
6
import { raf } from './util/util';
7
8
-let didInitialize = false;
9
-
10
export const appInitialize = (config: Config, doc: Document, zone: NgZone) => {
11
return (): any => {
12
const win: IonicWindow | undefined = doc.defaultView as any;
13
if (win && typeof (window as any) !== 'undefined') {
14
- if (didInitialize) {
15
- console.warn('Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once.');
16
- }
17
- didInitialize = true;
18
const Ionic = win.Ionic = win.Ionic || {};
19
20
Ionic.config = {
0 commit comments