Merge pull request #6879 from NativeScript/tachev/fix-app-launch

fix: app launch with app.css hot module update
This commit is contained in:
Svetoslav
2019-02-08 14:49:50 +02:00
committed by GitHub

View File

@ -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);
}
}