From 8e13c7e2198b0c5c2d9624c402ddcd64b6053cc9 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 20 Jun 2021 05:52:30 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index 3f8c88c..a5ab63e 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -191,20 +191,20 @@ var ChromeObject = function() { }; this.getPageById = function(id) { - var pages = pageList.filter(function(x) { + var pages = this.getPageList().filter(function(x) { return (pageList[k].id = id); }); return (pages.length > 0 ? pages[0] : null); }; this.getPagesByUrl = function(url) { - return pageList.filter(function(x) { + return this.getPageList().filter(function(x) { return (x.url == url); }); }; this.getPagesByTitle = function(title) { - return pageList.filter(function(x) { + return this.getPageList().filter(function(x) { return (x.title == title); }); };