transform/livereloadinject: Don't use document.write to inject livereload
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 31 Jan 2020 07:02:53 +0000 (08:02 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 31 Jan 2020 07:02:53 +0000 (08:02 +0100)
commitef78a0d18a13098bcea1ff2b2d45d7388b8d41a0
tree8c005dacddf72aa60ab8af9f289fec90fa7cabc0
parent585958645372e6219239247dbac02e447d2b355b
transform/livereloadinject: Don't use document.write to inject livereload

I suspect the person who originally implemented it saw examples using location.host etc. to build the URL.

We have all that information ready at build (static) time.

Fixes #6507
transform/livereloadinject/livereloadinject.go
transform/livereloadinject/livereloadinject_test.go