Remove debug code
This commit is contained in:
parent
dcf5532938
commit
f79b272ffd
@ -132,7 +132,7 @@ fn vnc_close_handle(vnc: &Vnc, canvas: &CanvasUtils, msg: &str) {
|
||||
fn start_websocket() -> Result<(), JsValue> {
|
||||
// connect
|
||||
let url = format!(
|
||||
"{scheme}://{host}/ws?bookmark=12vnc",
|
||||
"{scheme}://{host}/websockify",
|
||||
scheme = if web_sys::window()
|
||||
.unwrap()
|
||||
.location()
|
||||
@ -143,7 +143,7 @@ fn start_websocket() -> Result<(), JsValue> {
|
||||
} else {
|
||||
"ws"
|
||||
},
|
||||
host = "10.103.14.110:4433"
|
||||
host = web_sys::window().unwrap().location().host()?
|
||||
);
|
||||
let ws = WebSocket::new_with_str(&url, "binary")?;
|
||||
let canvas = CanvasUtils::new();
|
||||
|
Loading…
Reference in New Issue
Block a user