Skip to content

Commit

Permalink
fix loading of svg
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Jan 24, 2024
1 parent c96f223 commit 1038bcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if (!process.env.VITE_DEV_SERVER_URL) {
case '.html': res.setHeader('content-type', 'text/html'); break;
case '.js': res.setHeader('content-type', 'text/javascript'); break;
case '.json': res.setHeader('content-type', 'application/json'); break;
case '.svg': res.setHeader('content-type', 'image/svg+xml'); break;
}

fs.createReadStream(path.join(__dirname, filePath))
Expand Down

0 comments on commit 1038bcc

Please sign in to comment.