mirror of
https://github.com/bitwarden/browser
synced 2025-01-01 20:57:53 +01:00
remove safari copy totp clipboard hack
This commit is contained in:
parent
d91c96ae65
commit
efbed1a9a3
@ -149,7 +149,7 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
|
||||
doc: window.document,
|
||||
});
|
||||
this.analytics.eventTrack.next({ action: 'Autofilled' });
|
||||
if (this.totpCode != null && !this.platformUtilsService.isSafari()) {
|
||||
if (this.totpCode != null) {
|
||||
this.platformUtilsService.copyToClipboard(this.totpCode, { window: window });
|
||||
}
|
||||
if (this.popupUtilsService.inPopup(window)) {
|
||||
@ -162,15 +162,6 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
|
||||
this.changeDetectorRef.detectChanges();
|
||||
});
|
||||
}
|
||||
|
||||
// Weird bug in Safari won't allow clipboard copying after a promise call, so we have this workaround
|
||||
if (cipher.type === CipherType.Login && this.platformUtilsService.isSafari()) {
|
||||
this.totpTimeout = window.setTimeout(() => {
|
||||
if (this.totpCode != null) {
|
||||
this.platformUtilsService.copyToClipboard(this.totpCode, { window: window });
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
searchVault() {
|
||||
|
Loading…
Reference in New Issue
Block a user