Update chrome.js

This commit is contained in:
Namhyeon Go 2021-06-20 06:14:29 +09:00 committed by GitHub
parent 10e70e0a7e
commit 7d49122aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};