mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-12-05 05:43:44 +00:00
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:
parent
a022383d63
commit
83fb136957
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user