File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
extension/js/content_scripts/webmail/gmail Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ export class GmailElementReplacer extends WebmailElementReplacer {
283283 } ;
284284
285285 private addMenuButton = ( replyOption : ReplyOption , gmailContextMenuBtn : string ) => {
286- if ( $ ( gmailContextMenuBtn ) . css ( 'display' ) === 'block' ) {
286+ if ( $ ( gmailContextMenuBtn ) . is ( ':visible' ) ) {
287287 const button = $ ( this . factory . btnSecureMenuBtn ( replyOption ) ) . insertAfter ( gmailContextMenuBtn ) ; // xss-safe-factory
288288 button . on (
289289 'click' ,
@@ -924,8 +924,10 @@ export class GmailElementReplacer extends WebmailElementReplacer {
924924 this . addMenuButton ( 'a_reply' , '#r' ) ;
925925 this . addMenuButton ( 'a_reply_all' , '#r2' ) ;
926926 this . addMenuButton ( 'a_forward' , '#r3' ) ;
927+ } else {
928+ Catch . setHandledTimeout ( addSecureOptionsToGmail , 100 ) ;
927929 }
928930 } ;
929- Catch . setHandledTimeout ( addSecureOptionsToGmail , 100 ) ;
931+ addSecureOptionsToGmail ( ) ;
930932 } ;
931933}
You can’t perform that action at this time.
0 commit comments