From 14c337835c1cc0e6f3ca1b5097a3e2b6bd46bd0d Mon Sep 17 00:00:00 2001 From: scoful <1269717999@qq.com> Date: Tue, 31 Dec 2019 13:11:44 +0800 Subject: [PATCH] =?UTF-8?q?popup=E5=88=97=E5=87=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=89=93=E5=BC=80=E7=9A=84=E6=89=80=E6=9C=89tab=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=8A=A0=E4=B8=8Afavicon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/popup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/popup.js b/js/popup.js index e03d047..a793b18 100644 --- a/js/popup.js +++ b/js/popup.js @@ -204,7 +204,7 @@ var i; tabs.vm.init(); for (i = 0; i < allTabs.length; i += 1) { - var tab = { "title": allTabs[i].title, "id": allTabs[i].id }; + var tab = { "title": allTabs[i].title, "id": allTabs[i].id, "favIconUrl": allTabs[i].favIconUrl }; tabs.vm.list.push(tab); } }; @@ -222,7 +222,8 @@ tabs.vm.rmTab(i); event.stopPropagation(); } - }), m("span", {}, tab.title)]) + }), m('img', { src: tab.favIconUrl, height: '10', width: '10' }), + ' ', m("span", {}, tab.title)]) ]); }); };