Hide splash screen when load completed 17/205917/2 accepted/tizen/unified/20190522.085436 submit/tizen/20190521.092823
authorDongHyun Song <dh81.song@samsung.com>
Tue, 21 May 2019 05:15:54 +0000 (14:15 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Tue, 21 May 2019 05:16:08 +0000 (14:16 +0900)
Crosswalk hide the splash screen 'load,complete' callback
when if the option is ready_when=complete, thus
'did-finish-load' is proper time for 'complete'

Change-Id: Icafac00ad2af2f88b9789faeaeb796002ef11df4

wrt_app/src/web_application.js

index fd9b5e4..16ab876 100755 (executable)
@@ -209,6 +209,7 @@ class WebApplication {
         });
         this.mainWindow.webContents.on('did-finish-load', function() {
             console.log(`webContents did-finish-load preloadState: ${self.preloadState}`);
+            wrt.hideSplashScreen(2);
             if (wrt.isIMEWebApp())
                 self.activateIMEWebHelperClient();
             if (self.preloadState === 'readyToShow' || self.preloadState === 'preload') {