File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
extension/js/content_scripts/webmail/gmail Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -292,13 +292,10 @@ export class GmailElementReplacer extends WebmailElementReplacer {
292292
293293 private replaceActionsMenu = ( ) => {
294294 $ ( 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- }
295+ const $actionsBtn = $ ( event . currentTarget ) . find ( this . sel . msgActionsBtn ) ;
296+ if ( $actionsBtn . length && ! $ ( '.action_menu_message_button' ) . length ) {
297+ this . addMenuButton ( 'reply' , '#r' ) ;
298+ this . addMenuButton ( 'forward' , '#r3' ) ;
302299 }
303300 } ) ;
304301 } ;
You can’t perform that action at this time.
0 commit comments