summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--transform/livereloadinject.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/transform/livereloadinject.go b/transform/livereloadinject.go
index 4f572b57c..eb431f14a 100644
--- a/transform/livereloadinject.go
+++ b/transform/livereloadinject.go
@@ -6,10 +6,11 @@ import (
"github.com/spf13/viper"
)
-func LiveReloadInject(content []byte) []byte {
+func LiveReloadInject(content []byte) (injected []byte) {
defer func() {
if r := recover(); r != nil {
jww.ERROR.Println("Recovered in LiveReloadInject", r)
+ injected = content
}
}()
match := []byte("</body>")