aboutsummaryrefslogtreecommitdiffhomepage
path: root/livereload
diff options
context:
space:
mode:
author杨晴 <[email protected]>2022-08-01 17:42:26 +0800
committerGitHub <[email protected]>2022-08-01 11:42:26 +0200
commit3fefea06b884ff905509f5854cb13bc54d092f38 (patch)
tree00eae395e3948f6b80005f01dc041520ba946815 /livereload
parent5c48ba9343e6c306a3376a255ae9fb216dd1db4c (diff)
downloadhugo-3fefea06b884ff905509f5854cb13bc54d092f38.tar.gz
hugo-3fefea06b884ff905509f5854cb13bc54d092f38.zip
commands: Fix embed in livereload.go
Diffstat (limited to 'livereload')
-rw-r--r--livereload/livereload.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/livereload/livereload.go b/livereload/livereload.go
index eb2e79473..246928884 100644
--- a/livereload/livereload.go
+++ b/livereload/livereload.go
@@ -43,6 +43,8 @@ import (
"net/url"
"path/filepath"
+ _ "embed"
+
"github.com/gorilla/websocket"
)
@@ -152,7 +154,7 @@ func liveReloadJS() []byte {
var (
// This is a patched version, see https://github.com/livereload/livereload-js/pull/84
- // go:embed livereload.js
+ //go:embed livereload.js
livereloadJS string
hugoLiveReloadPlugin = fmt.Sprintf(`
/*