[Pale-Moon] remove duplicated code hunk, fix js error

This commit is contained in:
Roy Tam 2020-02-13 07:13:08 +08:00
commit cbe1b44079

View file

@ -225,15 +225,6 @@ var ctrlTab = {
}
}
let hidePinnedTabs = gPrefService.getBoolPref("browser.ctrlTab.hidePinnedTabs");
if (hidePinnedTabs) {
regularTabsList = list.filter(function (tab) !tab.pinned);
// Don't hide pinned tabs if we only have 1 regular tab
if (regularTabsList.length > 1) {
list = regularTabsList;
}
}
return this._tabList = list;
},