S
SolidJS2y ago
Grahf

index.html <script> tag doesn't work?

Hi I'm using solidStart. The script tag in the index.html doesn't appear to be working. I add a console log in it and don't see the console log on either the client or server.
7 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Grahf
GrahfOP2y ago
lol stay liquid. I think I need to the run script I'm actually trying to run in index.html. Don't think I can import Dynamic into index.html
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Grahf
GrahfOP2y ago
index.html is here: I think I need my script to run in that location. I'll try root.jsx
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Grahf
GrahfOP2y ago
Yeah I guess the Dynamic component in root.tsx works too.
I was just adding a script to check local storage before the page loads. If that item is in local storage then a class os added to documentElement. That works..... THANK YOU liquid
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server