mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 23:42:50 +08:00
Merge pull request #6879 from NativeScript/tachev/fix-app-launch
fix: app launch with app.css 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