mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03: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
|
// 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