From 3d201b713cea90174df539a02773d60a35947b8b Mon Sep 17 00:00:00 2001 From: "jaekuk, lee" Date: Mon, 17 May 2021 16:40:05 +0900 Subject: [PATCH] [Addon] Set tv app path if target is tv Apps are installed in the "/opt/usr/apps" path on TV, so if target is tv, change keyTerm value to "apps". Change-Id: Iae3c7c590189dfec48304063030c9b040a6dcccb Signed-off-by: jaekuk, lee --- wrt_app/addon/common/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 wrt_app/addon/common/utils.ts diff --git a/wrt_app/addon/common/utils.ts b/wrt_app/addon/common/utils.ts old mode 100644 new mode 100755 index 3ed10ce..d3fbfc7 --- a/wrt_app/addon/common/utils.ts +++ b/wrt_app/addon/common/utils.ts @@ -1,4 +1,5 @@ -const keyTerm = 'globalapps'; +import { wrt } from '../../browser/wrt'; +const keyTerm = wrt.tv ? 'apps' : 'globalapps'; const delimiter = '/'; function extractID(line: string) { -- 2.7.4