From 783bb20b46f02bed70a252ea3b7dc6ffd34e65e4 Mon Sep 17 00:00:00 2001 From: Baud Date: Thu, 30 May 2024 23:31:08 +0100 Subject: [PATCH] _hissing_ --- frontend/Cargo.lock | 1 - frontend/Cargo.toml | 1 - frontend/src/app.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/Cargo.lock b/frontend/Cargo.lock index 6837a35..5279810 100644 --- a/frontend/Cargo.lock +++ b/frontend/Cargo.lock @@ -1410,7 +1410,6 @@ dependencies = [ "env_logger", "ewebsock", "hrtime", - "js-sys", "log", "serde", "serde_json", diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index a5513e0..d196880 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -10,7 +10,6 @@ eframe = { version = "0.27.0", default-features = false, features = [ "default_fonts", # Embed the default egui fonts. "glow", # Use the glow rendering backend. Alternative: "wgpu". ] } -js-sys = "0.3.69" log = "0.4" serde = { version = "1", features = ["derive"] } hrtime = "0.2.0" diff --git a/frontend/src/app.rs b/frontend/src/app.rs index 5078239..6d861c9 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -6,7 +6,6 @@ use std::{ use egui::{Button, Color32, RichText, Rounding, Sense, Stroke, Vec2}; use ewebsock::{Options, WsReceiver, WsSender}; -use js_sys::eval; use wasm_timer::Instant; use crate::websocket::{ @@ -28,7 +27,7 @@ pub struct HyperdeckMonitorApp { impl Default for HyperdeckMonitorApp { fn default() -> Self { - let api_websocket_location = format!("ws://voc.emf.camp:9681/ws", window_location); + let api_websocket_location = format!("ws://voc.emf.camp:9681/ws"); let (ws_sender, ws_receiver) = ewebsock::connect(api_websocket_location, Options::default()).unwrap(); Self {