mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
use requestAnimationFrame instead of arbitrary timeout
This commit is contained in:
@@ -280,7 +280,7 @@ export class VaultPopupAutofillService {
|
||||
}
|
||||
|
||||
// Slight delay to fix bug in Chromium browsers where popup closes without copying totp to clipboard
|
||||
setTimeout(() => BrowserApi.closePopup(window), 50);
|
||||
requestAnimationFrame(() => BrowserApi.closePopup(window));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user