From d75bf4ed21d1bef9ab2f8f703f012029c1ce34a0 Mon Sep 17 00:00:00 2001 From: "surya.kumar7" Date: Wed, 13 Mar 2019 17:54:59 +0530 Subject: [PATCH] Handle SkipReload data sent via appcontrol on vd On vd, platform sends a SkipReload data via appcontrol to indicate app to merely resume and avoid reload. Added support for handling that Change-Id: Ibd2ddb6bae509f9619648c29dd15b7513846c605 Signed-off-by: surya.kumar7 --- wrt_app/src/runtime.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wrt_app/src/runtime.js b/wrt_app/src/runtime.js index ea2cc65..939841d 100755 --- a/wrt_app/src/runtime.js +++ b/wrt_app/src/runtime.js @@ -80,7 +80,15 @@ class Runtime { console.log('app-control'); let loadInfo = appControl.getLoadInfo(); let src = loadInfo.getSrc(); + if (_this.webApplication) { + let skipReload = appControl.getData('SkipReload'); + if (skipReload == 'Yes') { + console.log('skipping reload'); + _this.webApplication.resume(); + return; + } + let reload = loadInfo.getReload(); if (!reload) { if (src != _this.webApplication.mainWindow.getURL()) -- 2.7.4