Revert "fix: liveview interpreter using new templates"

This commit is contained in:
Jon Kelley authored and GitHub committed 2022-12-16 14:20:05 -08:00
1 parent 7ec55aa563
commit 5ac9b595ea
32 files changed
+1734 -627

No files matched your search

+1 -8
View File
@@ -52,14 +52,7 @@ pub(super) fn desktop_handler(
} else if trimmed == "index.js" {
Response::builder()
.header("Content-Type", "text/javascript")
.body(
format!(
"{} {}",
dioxus_interpreter_js::INTERPRETER_JS,
include_str!("./main.js")
)
.into_bytes(),
)
.body(dioxus_interpreter_js::INTERPRETER_JS.as_bytes().to_vec())
.map_err(From::from)
} else {
let asset_root = asset_root