[DeviceHome][VD] Fix setting the 'wsa' path
[platform/framework/web/wrtjs.git] / 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`);