We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7561403 commit 4314a28Copy full SHA for 4314a28
lib/server.js
@@ -92,7 +92,7 @@ exports.Server = function Server(bsClient, workers) {
92
pathMatches = (filePath == config.test_path);
93
}
94
if (pathMatches && mimeType === 'text/html') {
95
- var matcher = /(.*)<\/head>/;
+ var matcher = /(.*)<\/body>/;
96
var patch = "$1";
97
scripts.forEach(function(script) {
98
patch += "<script type='text/javascript' src='/_patch/" + script + "'></script>\n";
@@ -118,7 +118,7 @@ exports.Server = function Server(bsClient, workers) {
118
119
});
120
121
- patch += "</head>";
+ patch += "</body>";
122
123
file = file.replace(matcher, patch);
124
0 commit comments