mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-19 00:26:27 +01:00
Added placeholder icon if extension misses icon
This commit is contained in:
parent
a8e3ccd761
commit
c7ecfde5ed
@ -51,7 +51,7 @@ public class StoreExtensionItem implements ContentItem {
|
|||||||
.append("<div class=\"overview_item ").append(displayColor(i)).append(" content_item\">")
|
.append("<div class=\"overview_item ").append(displayColor(i)).append(" content_item\">")
|
||||||
|
|
||||||
.append("<div class=\"overview_item_logo\">")
|
.append("<div class=\"overview_item_logo\">")
|
||||||
.append("<img src=\"").append(repository.getResourceUrl("store", "extensions", storeExtension.getTitle(), "icon.png")).append("\" alt=\"\">")
|
.append("<img src=\"").append(repository.getResourceUrl("store", "extensions", storeExtension.getTitle(), "icon.png")).append("\" alt=\"\" onerror=\"this.src=").append(repository.getResourceUrl("assets", "icons", "placeholder.png")).append("\">")
|
||||||
.append("</div>")
|
.append("</div>")
|
||||||
|
|
||||||
.append("<div class=\"overview_item_info\">")
|
.append("<div class=\"overview_item_info\">")
|
||||||
|
Loading…
Reference in New Issue
Block a user