From: Sanghyup Lee Date: Wed, 18 Oct 2017 08:03:39 +0000 (+0900) Subject: [WRT] Luncher should be updated properly X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F156045%2F2;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git [WRT] Luncher should be updated properly We should use IPC_MESSAGE.LAUNCHER.UPDATE instead of WAS_EVENT because WAS_EVENT.LAUNCHER.UPDATE is undefined and launcher.js uses IPC_MESSAGE.LAUNCHER.UPDATE. Change-Id: I63115e80f4dd8e11fbe3aa52eae2465ef88ee7fa Signed-off-by: Sanghyup Lee --- diff --git a/wrt/src/web_application.js b/wrt/src/web_application.js index 240283d..1487b37 100644 --- a/wrt/src/web_application.js +++ b/wrt/src/web_application.js @@ -1,5 +1,6 @@ 'use strict'; const WAS_EVENT = require('./was_event'); +const IPC_MESSAGE = require('./ipc_message'); const DEFAULT = require('./default_value'); const path = require('path'); const ChildProcess = require('child_process'); @@ -150,7 +151,7 @@ class WebApplication { childprocess_debug('child is killed ****************************'); self.childProcessPool.splice(self.childProcessPool.indexOf(self.childProcess), 1); childprocess_debug('childProcess length : ' + self.childProcessPool.length); - self.webwindows[0].send(WAS_EVENT.LAUNCHER.UPDATE, 'ping'); + self.webwindows[0].send(IPC_MESSAGE.LAUNCHER.UPDATE, 'ping'); }); } handleLauncherEvents() { @@ -166,7 +167,7 @@ class WebApplication { } updateLauncer() { rp_new_debug('No child_process fork : Update launcher'); - this.webwindows[0].send(WAS_EVENT.LAUNCHER.UPDATE, 'ping'); + this.webwindows[0].send(IPC_MESSAGE.LAUNCHER.UPDATE, 'ping'); } } module.exports = WebApplication;