diff --git a/lib/server.js b/lib/server.js index 080216c..3225012 100644 --- a/lib/server.js +++ b/lib/server.js @@ -92,7 +92,7 @@ exports.Server = function Server(bsClient, workers) { pathMatches = (filePath == config.test_path); } if (pathMatches && mimeType === 'text/html') { - var matcher = /(.*)<\/head>/; + var matcher = /(.*)<\/body>/; var patch = "$1"; scripts.forEach(function(script) { patch += "\n"; @@ -118,7 +118,7 @@ exports.Server = function Server(bsClient, workers) { patch += "\n"; }); } - patch += ""; + patch += ""; file = file.replace(matcher, patch); }