Skip to content

A platform for community discussion. Free, open, simple.

DEV: removes IE fallback (#35990)

Joffrey JAFFEUXa11f81fe8386
diff --git a/frontend/discourse/app/components/d-otp/index.gjs b/frontend/discourse/app/components/d-otp/index.gjs
index c4f4707bb7f..a16cfdd699b 100644
--- a/frontend/discourse/app/components/d-otp/index.gjs
+++ b/frontend/discourse/app/components/d-otp/index.gjs
@@ -109,7 +109,7 @@ export default class DOTP extends Component {
const input = event.target;
event.preventDefault(); // Prevent the call to input as we manually call it later
- const clipboardData = event.clipboardData || window.clipboardData;
+ const { clipboardData } = event;
if (!clipboardData) {
return;
}