Skip to content

Commit

Permalink
Fix: Code theme css was not applying on element
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Nov 8, 2023
1 parent 3eb6f6a commit 6b00e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastn-core/src/commands/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ fn handle_default_route(
let theme_css = ftd::theme_css();
return theme_css.get(theme).cloned().map(|theme| {
actix_web::HttpResponse::Ok()
.content_type(mime_guess::mime::TEXT_JAVASCRIPT)
.content_type(mime_guess::mime::TEXT_CSS)
.body(theme)
});
} else if req.path().ends_with(fastn_core::utils::hashed_prism_js()) {
Expand All @@ -595,7 +595,7 @@ fn handle_default_route(
} else if req.path().ends_with(fastn_core::utils::hashed_prism_css()) {
return Some(
actix_web::HttpResponse::Ok()
.content_type(mime_guess::mime::TEXT_JAVASCRIPT)
.content_type(mime_guess::mime::TEXT_CSS)
.body(ftd::prism_css()),
);
}
Expand Down

0 comments on commit 6b00e4f

Please sign in to comment.