Currently reset web application when app-control event occurs after web application is created.
but, this is not correct behavior and sometimes crash is occured.
so ignore this case, and fix behavior after app-control event object is provided in app-control event.
Change-Id: Ife0c8b01dfa13ba99ea3bc405fd854a9db3e7610
Signed-off-by: SangYong Park <sy302.park@samsung.com>
wrt.on('app-control', function() {
console.log('app-control');
if (_this.webApplication) {
- console.log("Close current app");
- _this.webApplication.close();
- _this.webApplication = null;
+ // TODO: Reset application or emit appcontrol event
+ console.log("application is already created");
+ return;
}
if (wrt.isElectronApp()) {