refactor: guard livesync for cases the app is not yet started (#6276)

This commit is contained in:
Alexander Vakrilov
2018-09-20 09:47:53 +03:00
committed by GitHub
parent 262568314b
commit 71107533bb

View File

@@ -531,6 +531,10 @@ export class FrameBase extends CustomLayoutView implements FrameDefinition {
public _onLivesync(): boolean {
super._onLivesync();
if (!this._currentEntry || !this._currentEntry.entry) {
return false;
}
const currentEntry = this._currentEntry.entry;
const newEntry: NavigationEntry = {
animated: false,