1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

dont show popout in firefox sidebar

This commit is contained in:
Kyle Spearrin
2018-04-13 23:37:57 -04:00
parent 57a0c0fc75
commit 38f55d7147
4 changed files with 12 additions and 3 deletions

View File

@@ -20,11 +20,14 @@ export class PopOutComponent implements OnInit {
@Input() show = true;
constructor(private analytics: Angulartics2, private platformUtilsService: PlatformUtilsService,
private popupUtilsService: PopupUtilsService) {}
private popupUtilsService: PopupUtilsService) { }
ngOnInit() {
if (this.show) {
this.show = !this.platformUtilsService.isSafari();
if (this.show && this.popupUtilsService.inSidebar(window) && this.platformUtilsService.isFirefox()) {
this.show = false;
}
}
}