summaryrefslogtreecommitdiffstats
path: root/transform
diff options
context:
space:
mode:
Diffstat (limited to 'transform')
-rw-r--r--transform/livereloadinject.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/transform/livereloadinject.go b/transform/livereloadinject.go
index e5c100960..38e4e8cc9 100644
--- a/transform/livereloadinject.go
+++ b/transform/livereloadinject.go
@@ -8,7 +8,7 @@ import (
func LiveReloadInject(ct contentTransformer) {
match := []byte("</body>")
port := viper.GetString("port")
- replace := []byte(`<script>document.write('<script src="http://'
+ replace := []byte(`<script data-no-instant>document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':` + port + `/livereload.js?mindelay=10"></'
+ 'script>')</script></body>`)