fix(dash): add favicon to go script
This commit is contained in:
parent
7f37f8b353
commit
fdf118e301
@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="./myriad.png" />
|
<link rel="icon" href="/myriad.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>PluralKit | home</title>
|
<title>PluralKit | home</title>
|
||||||
<!-- extra data -->
|
<!-- extra data -->
|
||||||
|
@ -61,7 +61,10 @@ func notFoundHandler(rw http.ResponseWriter, r *http.Request) {
|
|||||||
var err error
|
var err error
|
||||||
|
|
||||||
// lol
|
// 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)
|
data, err = fs.ReadFile("dist" + r.URL.Path)
|
||||||
rw.Header().Set("content-type", "application/javascript")
|
rw.Header().Set("content-type", "application/javascript")
|
||||||
} else if strings.HasSuffix(r.URL.Path, ".css") {
|
} else if strings.HasSuffix(r.URL.Path, ".css") {
|
||||||
|
Loading…
Reference in New Issue
Block a user