mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
Refactor copy logic to remove deprecated execCommand
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
84e7f50f96
commit
6d0bd25067
3 files changed
+112
-17
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user