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

pull/24/head
Roy Tam 3 years ago
parent 2da1f51f91
commit 4f18ae9e69
  1. 9
      application/palemoon/base/content/browser-tabPreviews.js

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

Loading…
Cancel
Save