From 83fb13695705c34258a504bd664956b1196344d0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 18 Aug 2025 03:26:27 +0900 Subject: [PATCH] Remove redundant error handling in ChromeObject Eliminated duplicate error response handling logic in ChromeObject and updated the version info to 0.5.3. Error messages are now handled solely by the catch block for cleaner code. --- lib/chrome.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index 1ee397d..42da405 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -440,15 +440,6 @@ var ChromeObject = function() { .send() .responseBody ; - - // response if error - if ("result" in response) { - (function(r) { - if ("subtype" in r && r.subtype == "error") { - console.warn(r.description); - } - })(response.result.result); - } } catch (e) { console.warn(e.message); response = { @@ -1507,7 +1498,7 @@ exports.startDebugInPrivate = function(url, proxy, profileName, debuggingPort, i exports.publisherName = publisherName; -exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.5.2"; +exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.5.3"; exports.AUTHOR = "gnh1201@catswords.re.kr"; exports.global = global; exports.require = global.require;