File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -191,19 +191,8 @@ export class NativeScriptPlatformRef extends PlatformRef {
191
191
@profile
192
192
private bootstrapNativeScriptApp ( ) {
193
193
const autoCreateFrame = ! ! this . appOptions . createFrameOnBootstrap ;
194
- let tempAppHostView : AppHostView ;
195
194
let rootContent : View ;
196
195
197
- if ( autoCreateFrame ) {
198
- const { page, frame } = this . createFrameAndPage ( false ) ;
199
- setRootPage ( page ) ;
200
- rootContent = frame ;
201
- } else {
202
- // Create a temp page for root of the renderer
203
- tempAppHostView = new AppHostView ( ) ;
204
- setRootPage ( < any > tempAppHostView ) ;
205
- }
206
-
207
196
if ( isLogEnabled ( ) ) {
208
197
bootstrapLog ( "NativeScriptPlatform bootstrap started." ) ;
209
198
}
@@ -214,6 +203,17 @@ export class NativeScriptPlatformRef extends PlatformRef {
214
203
bootstrapLog ( "Application launch event fired" ) ;
215
204
}
216
205
206
+ let tempAppHostView : AppHostView ;
207
+ if ( autoCreateFrame ) {
208
+ const { page, frame } = this . createFrameAndPage ( false ) ;
209
+ setRootPage ( page ) ;
210
+ rootContent = frame ;
211
+ } else {
212
+ // Create a temp page for root of the renderer
213
+ tempAppHostView = new AppHostView ( ) ;
214
+ setRootPage ( < any > tempAppHostView ) ;
215
+ }
216
+
217
217
let bootstrapPromiseCompleted = false ;
218
218
this . _bootstrapper ( ) . then (
219
219
moduleRef => {
You can’t perform that action at this time.
0 commit comments