Bug 848451 - Hide the channel information on the About dialog if the user is running the Release channel. r=mconley

--HG--
extra : rebase_source : 8992edc5e2e239ff7dfa33f3673f00cbc356af8f
This commit is contained in:
Jared Wein 2013-03-06 13:42:36 -05:00
parent 2dd48de2b5
commit 909f22972f
2 changed files with 4 additions and 0 deletions

View File

@ -45,10 +45,12 @@ function init(aEvent)
#ifdef MOZ_UPDATER
gAppUpdater = new appUpdater();
#if MOZ_UPDATE_CHANNEL != release
let defaults = Services.prefs.getDefaultBranch("");
let channelLabel = document.getElementById("currentChannel");
channelLabel.value = defaults.getCharPref("app.update.channel");
#endif
#endif
#ifdef XP_MACOSX
// it may not be sized at this point, and we need its width to calculate its position

View File

@ -83,10 +83,12 @@
#endif
</vbox>
#if MOZ_UPDATE_CHANNEL != release
#ifdef MOZ_UPDATER
<description class="text-blurb" id="currentChannelText">
&channel.description.start;<label id="currentChannel"/>&channel.description.end;
</description>
#endif
#endif
<vbox id="experimental" hidden="true">
<description class="text-blurb" id="warningDesc">