Skip to content

Commit cca7b9f

Browse files
committed
Remove trusted event check from apply response button click listener
1 parent 86dd59d commit cca7b9f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/browser/src/content-scripts/send-prompt-content-script/utils/add-apply-response-button.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export function add_apply_response_button(params: {
3131
apply_response_button_style(apply_response_button)
3232
if (params.customize_button) params.customize_button(apply_response_button)
3333

34-
apply_response_button.addEventListener('click', async (event) => {
35-
if (!event.isTrusted) return
36-
34+
apply_response_button.addEventListener('click', async () => {
3735
set_button_disabled_state(apply_response_button)
3836
requestAnimationFrame(async () => {
3937
await params.perform_copy(params.footer)

0 commit comments

Comments
 (0)