Comment on attachment 551136 don't close compose window w/ send in background if last open window
Review of attachment 551136: -----------------------------------------------------------------
::: mail/components/compose/content/MsgComposeCommands.js @@ +2232,5 @@ > .getBoolPref("mailnews.sendInBackground"); > + if (sendInBackground && !Application.platformIsMac) { > + let windowMediator = > + Components.classes["@mozilla.org/appshell/window-mediator;1"] > + .getService(Components.interfaces.nsIWindowMediator);
You can just use Services.wm
Comment on attachment 551136
don't close compose window w/ send in background if last open window
Review of attachment 551136: ------- ------- ------- ------- ------- ------- ------- ------- --
-------
::: mail/components /compose/ content/ MsgComposeComma nds.js "mailnews. sendInBackgroun d"); platformIsMac) { classes[ "@mozilla. org/appshell/ window- mediator; 1"] Components. interfaces. nsIWindowMediat or);
@@ +2232,5 @@
> .getBoolPref(
> + if (sendInBackground && !Application.
> + let windowMediator =
> + Components.
> + .getService(
You can just use Services.wm