keysnail icon indicating copy to clipboard operation
keysnail copied to clipboard

list-closed-tabs doesn't work on Fx46 and workaround

Open scorecounter opened this issue 9 years ago • 1 comments

As of Firefox 46, list-closed-tabs (最近閉じたタブを一覧表示して復元 - mooz deceives you) doesn't work because of syntax change of JavaScript.

Error message:

"missing ] after element list"

var closedTabs = [[tab.image || fav, tab.title] for each (tab in json.decode(ss.getClosedTabData(window)))];

So, I changed as below and works fine:

var closedTabs = json.decode(ss.getClosedTabData(window)).map(function (tab) {
    return [tab.image || fav, tab.title];
});

Thanks.

scorecounter avatar Apr 19 '16 00:04 scorecounter