File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
extension/js/content_scripts/webmail/gmail Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -291,10 +291,14 @@ export class GmailElementReplacer extends WebmailElementReplacer {
291291 } ;
292292
293293 private replaceActionsMenu = ( ) => {
294- $ ( this . sel . msgActionsBtn ) . on ( 'click' , ( ) => {
295- if ( $ ( '.action_menu_message_button' ) . length <= 0 ) {
296- this . addMenuButton ( 'reply' , '#r' ) ;
297- this . addMenuButton ( 'forward' , '#r3' ) ;
294+ $ ( document ) . on ( 'click' , 'div.aHU.hx' , event => {
295+ const $clickedElement = $ ( event . currentTarget ) ;
296+ const $actionsBtn = $clickedElement . find ( this . sel . msgActionsBtn ) ;
297+ if ( $actionsBtn . length > 0 ) {
298+ if ( $ ( '.action_menu_message_button' ) . length <= 0 ) {
299+ this . addMenuButton ( 'reply' , '#r' ) ;
300+ this . addMenuButton ( 'forward' , '#r3' ) ;
301+ }
298302 }
299303 } ) ;
300304 } ;
You can’t perform that action at this time.
0 commit comments