commands: Fix embed in livereload.go

This commit is contained in:
杨晴 authored and GitHub committed 2022-08-01 11:42:26 +02:00
1 parent 5c48ba9343
commit 3fefea06b8
1 file changed
+3 -1
+3 -1
View File
@@ -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(`
/*