From: DongHyun Song Date: Wed, 8 May 2019 07:17:52 +0000 (+0900) Subject: [VD]Always reloading if force.loadDefaultURI is true X-Git-Tag: accepted/tizen/unified/20190814.021400~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e0f074e615384015f15b17ac0dad5fe4deecdd7;p=platform%2Fframework%2Fweb%2Fwrtjs.git [VD]Always reloading if force.loadDefaultURI is true When eden_resume by preview selecting and if wrt.isAlwaysReload() is true, the app has to be reloaded Change-Id: I23bd91cff8ff8eab018659118b2a1685c203a2c7 --- diff --git a/wrt_app/src/runtime.js b/wrt_app/src/runtime.js index 8fcdcf1..a00c759 100755 --- a/wrt_app/src/runtime.js +++ b/wrt_app/src/runtime.js @@ -122,7 +122,7 @@ class Runtime { return; } - let reload = loadInfo.getReload(); + let reload = loadInfo.getReload() || _this.webApplication.isAlwaysReload; if (!reload) { if (src != _this.webApplication.mainWindow.getURL()) reload = true; diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index 3f242e9..ad29498 100755 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -39,6 +39,7 @@ class WebApplication { this.preloadState = 'none'; } this.accessiblePath = wrt.getAccessiblePath(); + this.isAlwaysReload = wrt.isAlwaysReload(); this.isTerminating = false; this.suspended = true; this.loadFinished = false;