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