Skip to content

Commit

Permalink
closes #75 by checking position of messagebox (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwenillia authored Jul 2, 2023
1 parent 8946907 commit 07f337e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion foodSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class FoodSelect {
this.haySelectors = this.haySlider?.getElementsByTagName("span")
this.oatsSlider = document.getElementById("oatsSlider") || null
this.oatsSelectors = this.oatsSlider?.getElementsByTagName("span")
this.messageBox = document.getElementById("messageBoxInline")?.textContent
this.careTabFeed = document.getElementById('care-tab-feed')
this.messageBox = this.careTabFeed.querySelector("#messageBoxInline")?.textContent
this.fourrageNode = document.getElementsByClassName("section-fourrage section-fourrage-target")[0]
this.avoineNode = document.getElementsByClassName("section-avoine section-avoine-target")[0]
}
Expand Down

0 comments on commit 07f337e

Please sign in to comment.