limit depth of tab de-closer history

This commit is contained in:
Eugene Pankov 2022-01-13 23:47:18 +01:00
parent 17c93aa3fc
commit b42314b29e
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -321,6 +321,7 @@ export class AppService {
const token = await this.tabRecovery.getFullRecoveryToken(tab, { includeState: true })
if (token) {
this.closedTabsStack.push(token)
this.closedTabsStack = this.closedTabsStack.slice(-5)
}
tab.destroy()
}