Remove debug code

This commit is contained in:
Jovi Hsu 2022-10-23 00:59:05 +08:00
parent dcf5532938
commit f79b272ffd

View File

@ -132,7 +132,7 @@ fn vnc_close_handle(vnc: &Vnc, canvas: &CanvasUtils, msg: &str) {
fn start_websocket() -> Result<(), JsValue> { fn start_websocket() -> Result<(), JsValue> {
// connect // connect
let url = format!( let url = format!(
"{scheme}://{host}/ws?bookmark=12vnc", "{scheme}://{host}/websockify",
scheme = if web_sys::window() scheme = if web_sys::window()
.unwrap() .unwrap()
.location() .location()
@ -143,7 +143,7 @@ fn start_websocket() -> Result<(), JsValue> {
} else { } else {
"ws" "ws"
}, },
host = "10.103.14.110:4433" host = web_sys::window().unwrap().location().host()?
); );
let ws = WebSocket::new_with_str(&url, "binary")?; let ws = WebSocket::new_with_str(&url, "binary")?;
let canvas = CanvasUtils::new(); let canvas = CanvasUtils::new();