injectHotReloadScript static method
Inject hot reload script into HTML
Implementation
static String injectHotReloadScript(String html) {
if (html.contains('</body>')) {
return html.replaceFirst('</body>', '$_hotReloadScript</body>');
}
return html + _hotReloadScript;
}