Browse Source

Serve svgs

pull/96/head
Weilbyte 3 years ago
parent
commit
97f282c9b0
No known key found for this signature in database GPG Key ID: E1EB2BFCF73B5B9F
  1. 2
      PVEDiscordDark/serve.py

2
PVEDiscordDark/serve.py

@ -37,7 +37,7 @@ class Server(BaseHTTPRequestHandler):
elif ext == "js":
data = open(os.path.join(DIR_JS, "PVEDiscordDark.js"), "rb").read()
type = "application/javascript"
elif ext == "png" or ext == "jpg" or ext == "jpeg":
elif ext == "png" or ext == "jpg" or ext == "jpeg" or ext == "svg":
try:
data = open(os.path.join(DIR_IMAGES, file), "rb").read()
type = f"image/{ext}"

Loading…
Cancel
Save