Skip to content

Commit

Permalink
commands: Fix embed in livereload.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yyqqing committed Aug 1, 2022
1 parent 5c48ba9 commit 3fefea0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion livereload/livereload.go
Expand Up @@ -43,6 +43,8 @@ import (
"net/url"
"path/filepath"

_ "embed"

"github.com/gorilla/websocket"
)

Expand Down Expand Up @@ -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(`
/*
Expand Down

0 comments on commit 3fefea0

Please sign in to comment.