For Epop, if miss any configuration in TV, the app will
terminate itself quickly, then 'quit->load-finish' will
happen, so check window before emit event to avoid exception.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/268326/
Change-Id: Ic7168d3a41c1c4cd3f31477259666c8f3b80a797
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
});
this.mainWindow.webContents.on('did-finish-load', () => {
- console.log('webContents did-finish-load');
+ console.log(`webContents did-finish-load, window length is ${this.windowList.length}`);
this.loadFinished = true;
+
+ if (!this.windowList.length)
+ return;
if (this.splashShown)
this.hideSplashScreen('complete');