automatically recover ssh tabs (fixes #583)

This commit is contained in:
Eugene Pankov
2019-01-06 11:54:26 +01:00
parent d03430fb2e
commit ce3610c2da
6 changed files with 29 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ import { SettingsTabComponent } from './components/settingsTab.component'
@Injectable()
export class RecoveryProvider extends TabRecoveryProvider {
async recover (recoveryToken: any): Promise<RecoveredTab> {
if (recoveryToken.type === 'app:settings') {
if (recoveryToken && recoveryToken.type === 'app:settings') {
return { type: SettingsTabComponent }
}
return null