diff --git a/server.ts b/server.ts index 5d18739..5588072 100644 --- a/server.ts +++ b/server.ts @@ -14,6 +14,8 @@ export function startServer(hostname = "localhost", port = 6969) { const extension = path.extname(filepath); + // chromium doesn't care about your file extensions, + // it only wants content-type const contentType = { '.svg': "image/svg+xml", '.png': "image/png",