diff --git a/cmd/jiotv_go/embed_files.go b/cmd/jiotv_go/embed_files.go index e5194ce7..7d6fefa5 100644 --- a/cmd/jiotv_go/embed_files.go +++ b/cmd/jiotv_go/embed_files.go @@ -3,7 +3,7 @@ package main import ( "embed" "io/fs" - "path/filepath" + "path" ) //go:embed templates @@ -17,7 +17,7 @@ type staticFS struct { } func (sfs *staticFS) Open(name string) (fs.File, error) { - return sfs.fs.Open(filepath.Join("static", name)) + return sfs.fs.Open(path.Join("static", name)) } var staticEmbed = &staticFS{staticEmbedFS} \ No newline at end of file