Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any update with injectBody enabled kills any JavaScript #136

Open
treehousekingcomic opened this issue Jun 11, 2024 · 0 comments
Open

Any update with injectBody enabled kills any JavaScript #136

treehousekingcomic opened this issue Jun 11, 2024 · 0 comments

Comments

@treehousekingcomic
Copy link

Describe the bug

I've noticed that with injectBody enabled, whether a hot update is made it "refreshes" the page without executing any JS at all. For example, a script to dynamically set the year in a copyright text will not get executed if any changes are made. This also seems to have an effect with highlight and simply clicking around the HTML will cause the bug. JavaScript only gets executed on a full page reload / saving the file which isn't ideal with scripts for animation and the second you click on the HTML file to work on it all the JS goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant