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.
This commit is contained in:
Namhyeon Go 2025-08-18 03:26:27 +09:00
parent a022383d63
commit 83fb136957

View File

@ -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;