You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8" /><metaname="viewport" content="width=device-width, initial-scale=1.0" /><linkrel="stylesheet" href="styles.css" /></head><body><h1>
Elit tempore autem natus nobiso
</h1><h3>
Sit sapiente ad aliquid similique suscipit veritatis architecto, voluptatum Sunt.
</h3><buttonid="open-modal-button">Open My Modal</button><dialogid="customModal"><formmethod="dialog"><inputtype="text" name="" value="" /><button>OK</button></form></dialog><script>constmodal=document.getElementById('customModal')constopenButton=document.getElementById('open-modal-button')constcloseButton=document.getElementById('close-modal-button')openButton.addEventListener('click',()=>{modal.showModal()})closeButton.addEventListener('click',()=>{modal.close()})constmodal2=document.getElementById('customModal')</script><scriptsrc='./index.js' type='text/javascript' /></body></html>
If I keep the script tag then the browser doesn't refresh automatically. The script tag from live server doesn't get injected.
Removing the script tags just works fine.
Software details
Command line used for launching live-server:
OS: ArcoLinux
Browser (if browser related): tested both on Brave and Firefox
Node.js version: v 20.4.0
live-server version: v1.2.2
The text was updated successfully, but these errors were encountered:
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting
Issue description
I have this HTML
If I keep the script tag then the browser doesn't refresh automatically. The script tag from live server doesn't get injected.
Removing the script tags just works fine.
Software details
live-server
:live-server
version: v1.2.2The text was updated successfully, but these errors were encountered: