зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1519616 - Clear theme preview for themes that don't have previews r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D16594 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
a3bc11c363
Коммит
7bf0bdbeab
|
@ -2634,13 +2634,12 @@ var gDetailView = {
|
|||
setSearchLabel(aAddon.type);
|
||||
|
||||
// Set the preview image for themes, if available.
|
||||
this.headingImage.src = "";
|
||||
if (aAddon.type == "theme") {
|
||||
let previewURL = aAddon.screenshots && aAddon.screenshots[0] && aAddon.screenshots[0].url;
|
||||
if (previewURL) {
|
||||
this.headingImage.src = previewURL;
|
||||
}
|
||||
} else {
|
||||
this.headingImage.src = "";
|
||||
}
|
||||
|
||||
AddonManager.addManagerListener(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче