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.
This commit is contained in:
Dimitar Tachev
2019-02-08 11:23:24 +02:00
committed by GitHub
parent 8b4a9b3c6b
commit 7ced019bbd

View File

@ -227,7 +227,7 @@ class IOSApplication implements IOSApplicationDefinition {
public _onLivesync(): void { public _onLivesync(): void {
// If view can't handle livesync set window controller. // If view can't handle livesync set window controller.
if (!this._rootView._onLivesync()) { if (this._rootView && !this._rootView._onLivesync()) {
this.setWindowContent(); this.setWindowContent();
} }
} }
@ -380,4 +380,4 @@ global.__onLiveSync = function __onLiveSync(context?: ModuleContext) {
const rootView = getRootView(); const rootView = getRootView();
livesync(rootView, context); livesync(rootView, context);
} }