mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21:21:03 +00:00
Update chrome.js
This commit is contained in:
parent
ce4003ec17
commit
8e13c7e219
|
@ -191,20 +191,20 @@ var ChromeObject = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getPageById = function(id) {
|
this.getPageById = function(id) {
|
||||||
var pages = pageList.filter(function(x) {
|
var pages = this.getPageList().filter(function(x) {
|
||||||
return (pageList[k].id = id);
|
return (pageList[k].id = id);
|
||||||
});
|
});
|
||||||
return (pages.length > 0 ? pages[0] : null);
|
return (pages.length > 0 ? pages[0] : null);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getPagesByUrl = function(url) {
|
this.getPagesByUrl = function(url) {
|
||||||
return pageList.filter(function(x) {
|
return this.getPageList().filter(function(x) {
|
||||||
return (x.url == url);
|
return (x.url == url);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getPagesByTitle = function(title) {
|
this.getPagesByTitle = function(title) {
|
||||||
return pageList.filter(function(x) {
|
return this.getPageList().filter(function(x) {
|
||||||
return (x.title == title);
|
return (x.title == title);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user