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.
Change-Id: Ifa1adcc34f2be6a21d605065e1fca189f63f5447
Signed-off-by: liwei <wei90727.li@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');