Bug 1498041 - Turn on ESLint in mail/base/content: fix one more undefined nsMsgViewCommandType variable. r=jorgk
authoraceman <acelists@atlas.sk>
Fri, 30 Nov 2018 14:02:00 +0100
changeset 33826 58068a9cedef38f2689291dc7b63476df24f6bb9
parent 33825 fa17a20f549165e5218def02eea6978e03a5208c
child 33827 3bb8dc6872e1cb9abcc3465b2c312e60e01af1c6
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersjorgk
bugs1498041
Bug 1498041 - Turn on ESLint in mail/base/content: fix one more undefined nsMsgViewCommandType variable. r=jorgk
mailnews/extensions/smime/content/msgReadSMIMEOverlay.js
--- a/mailnews/extensions/smime/content/msgReadSMIMEOverlay.js
+++ b/mailnews/extensions/smime/content/msgReadSMIMEOverlay.js
@@ -84,17 +84,17 @@ var SecurityController =
       case "cmd_viewSecurityStatus":
         if (document.documentElement.getAttribute('windowtype') == "mail:messageWindow")
           return GetNumSelectedMessages() > 0;
 
         if (GetNumSelectedMessages() > 0 && gDBView)
         {
           let enabled = {value: false};
           let checkStatus = {};
-          gDBView.getCommandStatus(nsMsgViewCommandType.cmdRequiringMsgBody,
+          gDBView.getCommandStatus(Ci.nsMsgViewCommandType.cmdRequiringMsgBody,
                                    enabled, checkStatus);
           return enabled.value;
         }
         // else: fall through.
 
       default:
         return false;
     }