fix: clean up bindings

This commit is contained in:
dr-frmr 2024-05-07 14:29:49 -06:00
parent 02a8e635b2
commit 90f539985a
No known key found for this signature in database

View File

@ -49,7 +49,7 @@ fn init(our: Address) {
false,
false,
Some("text/html".to_string()),
our.node.clone().as_bytes().to_vec(),
our.node().into(),
)
.expect("failed to bind to /our");
@ -58,7 +58,7 @@ fn init(our: Address) {
false,
false,
Some("text/html".to_string()),
"yes".as_bytes().to_vec(),
"yes".into(),
)
.expect("failed to bind to /amionline");
@ -67,9 +67,7 @@ fn init(our: Address) {
false,
false,
Some("application/javascript".to_string()),
format!("window.our = {{}}; window.our.node = '{}';", &our.node)
.as_bytes()
.to_vec(),
format!("window.our = {{}}; window.our.node = '{}';", &our.node).into(),
)
.expect("failed to bind to /our.js");