FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: app launch with app.css hot module update · NativeScript/NativeScript@7ced019 · GitHub

Commit 7ced019

Browse files
Dimitar Tachev
authored
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.
1 parent 8b4a9b3 commit 7ced019

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tns-core-modules/application/application.ios.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class IOSApplication implements IOSApplicationDefinition {
227227

228228
public _onLivesync(): void {
229229
// If view can't handle livesync set window controller.
230-
if (!this._rootView._onLivesync()) {
230+
if (this._rootView && !this._rootView._onLivesync()) {
231231
this.setWindowContent();
232232
}
233233
}
@@ -380,4 +380,4 @@ global.__onLiveSync = function __onLiveSync(context?: ModuleContext) {
380380

381381
const rootView = getRootView();
382382
livesync(rootView, context);
383-
}
383+
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL