Skip to main content

inject_scripts

Function inject_scripts 

Source
pub fn inject_scripts(html: &str) -> String
Expand description

Inject debugger script tags into an HTML string before </body>.

If the HTML already contains __DEBUGGER_INGEST_URL__ (i.e. was already injected), the original string is returned unchanged. If there is no </body> tag, the original string is returned as-is.