mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
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:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user