From 4e48bdba25bb867eae76d487d4a2b2e9dcf07e1e Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 21 Jan 2026 16:00:54 +0900 Subject: [PATCH 1/2] Remove unused Websocket instance and update version Eliminated the creation of an unused Websocket instance in ChromeObject and incremented the VERSIONINFO to 0.5.5. --- lib/chrome.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index ccf6159..be30858 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -53,7 +53,6 @@ var ChromeObject = function() { // for remote debugging this.debuggingPort = 0; this.pageId = ""; - this.ws = Websocket.create(); this.isAttached = false; this.pageList = []; this.title = ""; @@ -1498,7 +1497,7 @@ exports.startDebugInPrivate = function(url, proxy, profileName, debuggingPort, i exports.publisherName = publisherName; -exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.5.4"; +exports.VERSIONINFO = "Chrome Web Browser Debugging Interface (chrome.js) version 0.5.5"; exports.AUTHOR = "gnh1201@catswords.re.kr"; exports.global = global; exports.require = global.require; From d54a3483682dee5c0f2a507290c1a5620b4f8ae0 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 21 Jan 2026 16:23:32 +0900 Subject: [PATCH 2/2] Fix pageEventId usage in request body Use pageEventId.get() instead of pageEventId when setting the request body, as pageEventId is an accessor object and requires the getter. --- lib/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chrome.js b/lib/chrome.js index be30858..97603bc 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -432,7 +432,7 @@ var ChromeObject = function() { .setDataType("json") .open("POST", url) .setRequestBody({ - "id": pageEventId, + "id": pageEventId.get(), // pageEventId is an accessor object, must be use getter or setter. "method": method, "params": params })