don't remember tabs if recovery is disabled

This commit is contained in:
Eugene Pankov
2021-07-27 20:40:08 +02:00
parent 7bcf3dbabe
commit 74f91b7cb3

View File

@@ -20,7 +20,7 @@ export class TabRecoveryService {
}
async saveTabs (tabs: BaseTabComponent[]): Promise<void> {
if (!this.enabled) {
if (!this.enabled || !this.config.store.recoverTabs) {
return
}
window.localStorage.tabsRecovery = JSON.stringify(