From: jaekuk, lee Date: Mon, 17 May 2021 07:40:05 +0000 (+0900) Subject: [Addon] Set tv app path if target is tv X-Git-Tag: submit/tizen/20210531.160021~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d201b713cea90174df539a02773d60a35947b8b;p=platform%2Fframework%2Fweb%2Fwrtjs.git [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 --- 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) {