Skip to content

Commit

Permalink
Merge pull request #187 from lucamug/fix-for-injection-in-wrong-place
Browse files Browse the repository at this point in the history
Fix that move the injected html snippet (that load reload.js) at the …
  • Loading branch information
wking-io authored Sep 22, 2019
2 parents 59e0108 + 5fc820d commit 13535d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,11 @@ function parseUrl (pathname, model) {
**/
const resolveWith = res => contents => {
res.setHeader('Content-Type', 'text/html')
res.end(`
res.end(`${contents}
<!-- Inserted by Reload -->
<!-- Inserted by elm-live -->
<script src="/reload/reload.js"></script>
<!-- End Reload -->
${contents}
<!-- Inserted by elm-live - END -->
`)
}

Expand Down

0 comments on commit 13535d9

Please sign in to comment.