bmustiata / fast-live-reload

A live reload that works with all the possible browsers.
18 stars 5 forks source link

Fixes the regex in IFrameServer.js for finding </body>\s*</html> text… #2

Closed bbasic closed 8 years ago

bbasic commented 8 years ago

… portion in the response.

Previously, if anything else but empty spaces were found between these two tags then the string for client-reload.js script was not injected.

Be it a comment or some other tag like <noscript>, now it will work in such cases as well.

bmustiata commented 8 years ago

Nice find! Thank you for the fix.