From 66a205f0b9644637773bfcf671f1ec6d7cc57ae6 Mon Sep 17 00:00:00 2001 From: Tsunenobu Kai Date: Thu, 28 Apr 2016 00:46:21 +0900 Subject: [PATCH] =?UTF-8?q?Firefox46=E3=81=A7=E3=83=AA=E3=82=B9=E3=83=88?= =?UTF-8?q?=E5=86=85=E5=8C=85=E8=A1=A8=E8=A8=98=E3=81=8C=E4=BD=BF=E3=81=88?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AA=E3=81=AE=E3=81=A7?= =?UTF-8?q?=E3=80=81map=E9=96=A2=E6=95=B0=E3=81=A7=E7=BD=AE=E3=81=8D?= =?UTF-8?q?=E6=8F=9B=E3=81=88=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cf. https://github.com/mooz/keysnail/issues/206 --- .keysnail/.keysnail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.keysnail/.keysnail.js b/.keysnail/.keysnail.js index d17d5b97..77a29aa5 100644 --- a/.keysnail/.keysnail.js +++ b/.keysnail/.keysnail.js @@ -862,7 +862,9 @@ ext.add("list-closed-tabs", function () { const fav = "chrome://mozapps/skin/places/defaultFavicon.png"; var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore); var json = Cc["@mozilla.org/dom/json;1"].createInstance(Ci.nsIJSON); - var closedTabs = [[tab.image || fav, tab.title] for each (tab in json.decode(ss.getClosedTabData(window)))]; + var closedTabs = json.decode(ss.getClosedTabData(window)).map(function (tab) { + return [tab.image || fav, tab.title]; + }); if (!closedTabs.length) return void display.echoStatusBar("最近閉じたタブが見つかりませんでした", 2000);