Refactor copy logic to remove deprecated execCommand

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-17 04:55:45 +00:00
1 parent 84e7f50f96
commit 6d0bd25067
3 files changed
+112 -17

No files matched your search

+1 -4
View File
@@ -1550,11 +1550,8 @@ export default class LoginModalController {
if (!copied && handshakeInput.select) {
try {
handshakeInput.select();
if (this.document?.execCommand) {
copied = this.document.execCommand("copy");
}
} catch (error) {
copied = false;
// no-op
}
}
if (copied) {