1
0
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:
jaasen-livefront
2025-01-15 17:19:08 -08:00
parent ffa5afb5e8
commit 09a236b1e7

View File

@@ -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));
}
/**