]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands: Fix embed in livereload.go
author杨晴 <y_yqing@163.com>
Mon, 1 Aug 2022 09:42:26 +0000 (17:42 +0800)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 09:42:26 +0000 (11:42 +0200)
livereload/livereload.go

index eb2e79473a1ac581639851d842694fc7a18ba68e..246928884819411a2e55bf2f49204e94faecd0ac 100644 (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(`
 /*