[DeviceHome][VD] Fix setting the 'wsa' path 32/274032/2
authorDongHyun Song <dh81.song@samsung.com>
Wed, 20 Apr 2022 07:07:51 +0000 (16:07 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 20 Apr 2022 07:49:35 +0000 (07:49 +0000)
The start page includes 'wsa' path, then replace the base path as
/res/wsa/client/ for tmg app.

Change-Id: Iaed061140e26ee04a78402fb1879bc861f7cb4a4
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
device_home/service/service.js

index 138dd23..4cf8593 100755 (executable)
@@ -357,7 +357,7 @@ var HTTPserverStart = function() {
 
   if (is_tv) {
     platform_app_path = '/opt/usr/apps';
-    if (!fs.existsSync(path.join(__dirname, platform_client_res_path))) {
+    if (__dirname.indexOf('/wsa/') > -1) {
       platform_client_res_path = '/res/wsa/client';
     }
     console.log(`${TAG} TV Profile`);