Skip to content

Commit

Permalink
Add CSS and JavaScript media types (ordinals#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jun 12, 2023
1 parent 84dd51e commit 4234162
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ impl Media {
("image/webp", Media::Image, &["webp"]),
("model/gltf-binary", Media::Unknown, &["glb"]),
("model/stl", Media::Unknown, &["stl"]),
("text/css", Media::Text, &["css"]),
("text/html;charset=utf-8", Media::Iframe, &["html"]),
("text/javascript", Media::Text, &["js"]),
("text/plain;charset=utf-8", Media::Text, &["txt"]),
("video/mp4", Media::Video, &["mp4"]),
("video/webm", Media::Video, &["webm"]),
Expand Down

0 comments on commit 4234162

Please sign in to comment.