From 7ced019bbdf615cea30a679ba7cf13224745f7e8 Mon Sep 17 00:00:00 2001 From: Dimitar Tachev Date: Fri, 8 Feb 2019 11:23:24 +0200 Subject: [PATCH] fix: app launch with app.css hot module update Fix the application launch when there is an app.css change in a hot module update. --- tns-core-modules/application/application.ios.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/application/application.ios.ts b/tns-core-modules/application/application.ios.ts index ed50a80aa..7362023a6 100644 --- a/tns-core-modules/application/application.ios.ts +++ b/tns-core-modules/application/application.ios.ts @@ -227,7 +227,7 @@ class IOSApplication implements IOSApplicationDefinition { public _onLivesync(): void { // If view can't handle livesync set window controller. - if (!this._rootView._onLivesync()) { + if (this._rootView && !this._rootView._onLivesync()) { this.setWindowContent(); } } @@ -380,4 +380,4 @@ global.__onLiveSync = function __onLiveSync(context?: ModuleContext) { const rootView = getRootView(); livesync(rootView, context); -} \ No newline at end of file +}