Skip to content

Commit

Permalink
feat(server): add wrap to the inserted script
Browse files Browse the repository at this point in the history
  • Loading branch information
lomirus committed Aug 17, 2022
1 parent 02036f2 commit 6253efc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ async fn static_assets(req: Request<()>) -> tide::Result {
}
}
.insert_to(&head_selector, script)
.insert_to(&head_selector, Node::Text("\n".to_string()))
.html()
.into_bytes();
}
Expand Down

0 comments on commit 6253efc

Please sign in to comment.