feat: more fixes to liveview

This commit is contained in:
Jonathan Kelley committed 2022-12-15 14:25:23 -08:00
1 parent e256fe1079
commit 06e8e096bb
18 files changed
+1454 -1282

No files matched your search

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