mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dash): add favicon to go script
This commit is contained in:
parent
7f37f8b353
commit
fdf118e301
2 changed files with 5 additions and 2 deletions
|
|
@ -61,7 +61,10 @@ func notFoundHandler(rw http.ResponseWriter, r *http.Request) {
|
|||
var err error
|
||||
|
||||
// lol
|
||||
if strings.HasSuffix(r.URL.Path, ".js") {
|
||||
if r.URL.Path == "/myriad.png" {
|
||||
data, err = fs.ReadFile("dist/myriad.png")
|
||||
rw.Header().Set("content-type", "image/png")
|
||||
} else if strings.HasSuffix(r.URL.Path, ".js") {
|
||||
data, err = fs.ReadFile("dist" + r.URL.Path)
|
||||
rw.Header().Set("content-type", "application/javascript")
|
||||
} else if strings.HasSuffix(r.URL.Path, ".css") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue