Fixed icons after wiki links changed

This commit is contained in:
Danielv123 committed 2017-07-09 17:03:41 +02:00
1 parent 5de0b6319c
commit 492d678f94
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ function drawcontents(data) {
} else if(imagelinks[data[i].name]) {
img = imagelinks[data[i].name];
} else {
img = "https://wiki.factorio.com/images/" + capitalizeFirstLetter(data[i].name) + ".png";
img = "https://wiki.factorio.com/images/" + data[i].name.replace('-','_') + ".png";
}
var searchField = document.querySelector("#search");
if(!searchField.value || data[i].name.includes(searchField.value)) {