diff --git a/lib/chrome.js b/lib/chrome.js index ff5c262..5202157 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -195,7 +195,7 @@ var ChromeObject = function() { this.getPageById = function(id) { var pages = this.getPageList().filter(function(x) { - return (pageList[k].id = id); + return (x.id = id); }); return (pages.length > 0 ? pages[0] : null); };