summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/garden.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/garden.js b/js/garden.js
index 046943a..12a5fc4 100644
--- a/js/garden.js
+++ b/js/garden.js
@@ -696,10 +696,10 @@ function refreshTable(crops, season, schedule) {
function createCropRow(crop, schedule) {
function icon(name) {
- const img = document.createElement("img");
- img.classList.add("icon");
- img.src = `images/${name}.svg`;
- return img;
+ const icon = document.createElement("span");
+ icon.classList.add("icon");
+ icon.classList.add(`icon-${name}`);
+ return icon;
}
const row = document.createElement("tr");