File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
starters/chrome/extension Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ const chatgpt = {
229
229
230
230
// Define click/key handlers
231
231
const clickHandler = event => { // explicitly defined to support removal post-dismissal
232
- if ( event . target == event . currentTarget || event . target instanceof SVGPathElement ) dismissAlert ( ) ; } ;
232
+ if ( event . target == event . currentTarget || event . target . closest ( '[class*="-close-btn]' ) ) dismissAlert ( ) ; } ;
233
233
const keyHandler = event => { // to dismiss active alert
234
234
if ( / ^ (?: | S p a c e | E n t e r | R e t u r n | E s c ) / . test ( event . key ) || [ 32 , 13 , 27 ] . includes ( event . keyCode ) ) {
235
235
for ( const alertId of alertQueue ) { // look to handle only if triggering alert is active
Original file line number Diff line number Diff line change 3
3
"name" : " ChatGPT Extension" ,
4
4
"short_name" : " ChatGPT 🧩" ,
5
5
"description" : " A Chromium extension template to start using chatgpt.js like a boss!" ,
6
- "version" : " 2024.12.19 " ,
6
+ "version" : " 2024.12.20 " ,
7
7
"author" : " KudoAI" ,
8
8
"homepage_url" : " https://github.com/KudoAI/chatgpt.js-chrome-starter" ,
9
9
"icons" : {
You can’t perform that action at this time.
0 commit comments