[VD] Change argument type of notifyServiceMessage() 14/275714/4 accepted/tizen/unified/20220609.132739 submit/tizen/20220608.160016
authorDongHyun Song <dh81.song@samsung.com>
Tue, 31 May 2022 01:01:10 +0000 (10:01 +0900)
committerSangYong Park <sy302.park@samsung.com>
Wed, 8 Jun 2022 05:18:46 +0000 (05:18 +0000)
Fix wrong arguments usage of notifyServiceMessage() with current
DeviceHome implementation.

Change-Id: Ie263b737b746aa9d78ec3aaeeb483a0584c18294
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/common/service_message.ts

index 33ceb3b..d9f7c26 100644 (file)
@@ -17,8 +17,10 @@ export function notifyServiceMessage(type: string, message: string) {
       lastForegroundApp = foregroundApp;
     }
     if (foregroundAppMessagePort)
-      foregroundAppMessagePort.sendMessage([{ key: type, value: ['', message] }]);
-  } catch { }
+      foregroundAppMessagePort.sendMessage([{ key: type, value: message }]);
+  } catch (e) {
+    console.log(e);
+  }
 }
 
 export function initConsoleMessageNotification(id: string) {