mirror of
https://github.com/wuchangming/spy-debugger.git
synced 2026-01-18 14:29:45 +00:00
10 lines
223 B
JavaScript
10 lines
223 B
JavaScript
var htmlUtil = exports;
|
|
|
|
// inject script into html
|
|
htmlUtil.injectScriptIntoHtml = function(html, script) {
|
|
html = html.replace(/(<head>)/i, function (match) {
|
|
return script + match;
|
|
});
|
|
return html;
|
|
}
|