mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update chrome.js
This commit is contained in:
parent
72d8e8bcb0
commit
0ce3e87c28
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user