Skip to content

Commit b1b2fe7

Browse files
committed
Use web icon for web links
1 parent ce0898c commit b1b2fe7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/org/scijava/search/web/AbstractWebSearcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public AbstractWebSearcher(String title) {
3939
* @param details some text from the website representing its content
4040
*/
4141
protected void addResult(String name, String iconPath, String url, String details) {
42-
searchResults.add(new WebSearchResult(name, iconPath, url, details));
42+
searchResults.add(new WebSearchResult(name, //
43+
iconPath == null || iconPath.isEmpty() ? "/icons/world_link.png" : iconPath, url, details));
4344
}
4445

4546
public ArrayList<SearchResult> getSearchResults()
957 Bytes
Loading

0 commit comments

Comments
 (0)