From: DongHyun Song Date: Fri, 24 Apr 2020 08:45:45 +0000 (+0900) Subject: [VD] Segregates NativeWebRuntime for TV profile X-Git-Tag: accepted/tizen/unified/20200508.045044^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ad47bffa7decd9d372fb27e02b8a2bfda152252;p=platform%2Fframework%2Fweb%2Fwrtjs.git [VD] Segregates NativeWebRuntime for TV profile Adds TV APIs for disk cache setting and handling app-control data explicitly to simplify NotifyAppControl's original logic. Related patch: https://review.tizen.org/gerrit/231832/ Change-Id: Id82d6e3010a69ccc0116a15f473d32483fc7a6a2 Signed-off-by: DongHyun Song --- diff --git a/wrt_app/src/runtime.js b/wrt_app/src/runtime.js index 606fe2b..30301b8 100755 --- a/wrt_app/src/runtime.js +++ b/wrt_app/src/runtime.js @@ -134,6 +134,10 @@ class Runtime { _this.webApplication.inspectorSrc = src; src = "about:blank"; } + let useDiskCache = appControl.getData('USE_DISKCACHE'); + let halfWindowOption = appControl.getData('http://samsung.com/appcontrol/data/half_window_support'); + wrt.tv.setDiskCache(useDiskCache); + wrt.tv.handleAppControlData(launchMode, halfWindowOption); } _this.webApplication.mainWindow.loadURL(src); _this.webApplication.prelaunch(src);