зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1001794 - ""Help, About" does not show proper update channel in 29rc updated on beta channel" r=gavin
This commit is contained in:
Родитель
5600f2a1ab
Коммит
95d4116523
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче