mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
committed by
GitHub
parent
f7ac2e9250
commit
314f0e212f
6
.changes/fix-dev-server-html-serialization.md
Normal file
6
.changes/fix-dev-server-html-serialization.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Fixes HTML serialization removing template tags on the dev server.
|
||||
@@ -126,7 +126,7 @@ async fn handler<T>(req: Request<T>, state: Arc<State>) -> impl IntoResponse {
|
||||
head.prepend(script_el);
|
||||
});
|
||||
|
||||
f = document.to_string().as_bytes().to_vec();
|
||||
f = tauri_utils::html::serialize_node(&document);
|
||||
}
|
||||
|
||||
(StatusCode::OK, [(CONTENT_TYPE, mime_type)], f)
|
||||
|
||||
Reference in New Issue
Block a user