Skip to content

Commit

Permalink
chore: remove current blank tab in undoCloseTab
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Jul 7, 2024
1 parent 2c9254b commit a588b7b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion addon/chrome/content/session/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,14 @@ var TMP_ClosedTabs = {
let multiple = tabsToRestore.length > 1;
for (let index of tabsToRestore) {
if (SessionStore.getClosedTabCountForWindow(sourceWindow) > index) {
tab = this._undoCloseTab(sourceWindow, index, aWhere || "original", !tab, null, multiple);
tab = this._undoCloseTab(
sourceWindow,
index,
aWhere || "original",
!tab,
!tab ? undefined : null,
multiple
);
}
}

Expand Down

0 comments on commit a588b7b

Please sign in to comment.