bitwarden-estensione-browser/src/popup/tabs.component.ts

21 lines
460 B
TypeScript

import {
Component,
OnInit,
} from '@angular/core';
import { PopupUtilsService } from './services/popup-utils.service';
@Component({
selector: 'app-tabs',
templateUrl: 'tabs.component.html',
})
export class TabsComponent implements OnInit {
showCurrentTab: boolean = true;
constructor(private popupUtilsService: PopupUtilsService) { }
ngOnInit() {
this.showCurrentTab = !this.popupUtilsService.inPopout(window);
}
}