Closed TheRealVira closed 2 years ago
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
Problem/Motivation
Whether this is a feature request or a bug I am unsure of. Following the original documentation of Grocy for adding custom js without having to modify the application itself does not work as is.
Expected behavior
Based on their documentation:
https://github.com/grocy/grocy#adding-your-own-css-or-js-without-to-have-to-modify-the-application-itself
Actual behavior
When creating a dedicated folder+file the custom content is not loaded before
</body>
on every page. Neither is there any visual error or log entry about it.Steps to reproduce
data
folder underconfig/custom_components/grocy
.custom_js.html
file under the newdata
directory containing whatever script you want to add.Proposed changes
data
folder into the correct location.I assume that the "real"
data
directory for Grocy is somewhere different than the addon-grocy component. Force copying everything from the custom component "addon-grocy" to the "real Grocy" on boot will probably be enough. Optionally a hash comparison check between each file could be implemented to see if there is a new version to use. That way you could reduce actions to files which are different between thedata
folders.