mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-08 18:52:49 +03:00
fix: clean up bindings
This commit is contained in:
parent
02a8e635b2
commit
90f539985a
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user