From: DongHyun Song Date: Tue, 21 May 2019 05:15:54 +0000 (+0900) Subject: Hide splash screen when load completed X-Git-Tag: accepted/tizen/unified/20190522.085436^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bccffdbaeced449640d95ed3f35b43bf5fe41b55;p=platform%2Fframework%2Fweb%2Fwrtjs.git Hide splash screen when load completed 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 --- diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index fd9b5e4..16ab876 100755 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -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') {