From a609c1648d853be96bebc08726dc5bae3ff58327 Mon Sep 17 00:00:00 2001 From: DongHyun Song Date: Tue, 20 Aug 2019 11:18:52 +0900 Subject: [PATCH] Fixed naming convention Fixed un-unified variables for naming convention Change-Id: If9c5075c64ec473e56b955f233c08bac598d0e73 Signed-off-by: DongHyun Song --- wrt_app/src/runtime.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) mode change 100644 => 100755 wrt_app/src/runtime.js diff --git a/wrt_app/src/runtime.js b/wrt_app/src/runtime.js old mode 100644 new mode 100755 index 56dfabe..6be68bd --- a/wrt_app/src/runtime.js +++ b/wrt_app/src/runtime.js @@ -29,8 +29,8 @@ class Runtime { this.handleIpcMessages(); this.addonManager = null; this.isLaunched = false; - this.debug_mode = false; - this.need_inspector = false; + this.debugMode = false; + this.needInspector = false; this.webContents = null; this.allowQuit = false; @@ -125,7 +125,7 @@ class Runtime { _this.addonManager.isAddonAvailable(); options.launchMode = appControl.getData('http://samsung.com/appcontrol/data/launch_mode'); _this.webApplication = new WebApplication(options); - if (!_this.debug_mode && wrt.needUseInspector()) { + if (!_this.debugMode && wrt.needUseInspector()) { _this.webApplication.defaultSrc = src; src = "about:blank"; } @@ -171,8 +171,8 @@ class Runtime { wrt.setCookiePath(); // AUL public key/Vconf - To support inspector - if (!_this.debug_mode && _this.checkInspectorCondition(appControl)) { - _this.debug_mode = true; + if (!_this.debugMode && _this.checkInspectorCondition(appControl)) { + _this.debugMode = true; _this.launchInspector(appControl); } }); @@ -209,14 +209,14 @@ class Runtime { checkInspectorCondition(appControl) { var _this = this; let bundle_debug = (appControl.getData('__AUL_DEBUG__') === "1"); - _this.need_inspector = wrt.needUseInspector(); - return (bundle_debug || _this.need_inspector); + _this.needInspector = wrt.needUseInspector(); + return (bundle_debug || _this.needInspector); } launchInspector(appControl) { var _this = this; var portnum = wrt.getDebuggingPort(); var data = { "port" : [ portnum.toString() ] }; - if(_this.need_inspector) { + if(_this.needInspector) { _this.webApplication.debugport = portnum; } appControl.reply(data); -- 2.7.4