Skip to content

Commit

Permalink
Replaced document.onkeydown to dismiss modals w/ `.addEventListener…
Browse files Browse the repository at this point in the history
…()` to accommodate potential other listeners ↞ [auto-sync from `adamlui/ai-web-extensions`]
  • Loading branch information
kudo-sync-bot committed Oct 20, 2024
1 parent 3620564 commit bbbfdfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greasemonkey/amazongpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Adds the magic of AI to Amazon shopping
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.10.19.1
// @version 2024.10.19.2
// @license MIT
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
Expand Down Expand Up @@ -2873,6 +2873,6 @@
appAlert('waitingResponse') ; get.reply(msgChain)

// Add key listener to DISMISS modals
document.onkeydown = modals.keyHandler
document.addEventListener('keydown', modals.keyHandler)

})()

0 comments on commit bbbfdfa

Please sign in to comment.