Update chrome.js

This commit is contained in:
Namhyeon Go 2021-08-17 01:54:53 +09:00 committed by GitHub
parent 72d8e8bcb0
commit 0ce3e87c28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,7 @@ var ChromeObject = function() {
try {
var responseText = HTTP.get("http://127.0.0.1:" + this.debuggingPort + "/json");
//console.info(responseText);
console.log(responseText);
pageList = JSON.parse(responseText);
this.pageList = pageList;
return pageList;
@ -276,7 +277,7 @@ var ChromeObject = function() {
this.getPageById = function(id) {
return this.getPageList().find(function(x) {
return (x.id = id);
return (x.id == id);
});
};