[WRT] Luncher should be updated properly 45/156045/2
authorSanghyup Lee <sh53.lee@samsung.com>
Wed, 18 Oct 2017 08:03:39 +0000 (17:03 +0900)
committerSanghyup Lee <sh53.lee@samsung.com>
Wed, 18 Oct 2017 08:10:26 +0000 (17:10 +0900)
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 <sh53.lee@samsung.com>
wrt/src/web_application.js

index 240283d..1487b37 100644 (file)
@@ -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;