Bug 1001794 - ""Help, About" does not show proper update channel in 29rc updated on beta channel" r=gavin

This commit is contained in:
YFdyh000 2014-04-30 17:03:00 +02:00
parent e609163c15
commit 19449300c8
2 changed files with 3 additions and 4 deletions

View File

@ -52,11 +52,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");
let currentChannelText = document.getElementById("currentChannelText");
channelLabel.value = defaults.getCharPref("app.update.channel");
#endif
if (channelLabel.value == "release")
currentChannelText.hidden = true;
#endif
#ifdef XP_MACOSX

View File

@ -108,12 +108,10 @@
#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">