mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +00:00
Update chrome.js
This commit is contained in:
parent
72d8e8bcb0
commit
0ce3e87c28
|
@ -261,6 +261,7 @@ var ChromeObject = function() {
|
||||||
try {
|
try {
|
||||||
var responseText = HTTP.get("http://127.0.0.1:" + this.debuggingPort + "/json");
|
var responseText = HTTP.get("http://127.0.0.1:" + this.debuggingPort + "/json");
|
||||||
//console.info(responseText);
|
//console.info(responseText);
|
||||||
|
console.log(responseText);
|
||||||
pageList = JSON.parse(responseText);
|
pageList = JSON.parse(responseText);
|
||||||
this.pageList = pageList;
|
this.pageList = pageList;
|
||||||
return pageList;
|
return pageList;
|
||||||
|
@ -276,7 +277,7 @@ var ChromeObject = function() {
|
||||||
|
|
||||||
this.getPageById = function(id) {
|
this.getPageById = function(id) {
|
||||||
return this.getPageList().find(function(x) {
|
return this.getPageList().find(function(x) {
|
||||||
return (x.id = id);
|
return (x.id == id);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user