Skip to content

Commit

Permalink
Fix windows static files error
Browse files Browse the repository at this point in the history
  • Loading branch information
rabilrbl committed Aug 26, 2023
1 parent 87dc6d8 commit 12563f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/jiotv_go/embed_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"embed"
"io/fs"
"path/filepath"
"path"
)

//go:embed templates
Expand All @@ -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}

0 comments on commit 12563f2

Please sign in to comment.