From 1025fdf0297ca051e12a0b2ee0ea33094924e940 Mon Sep 17 00:00:00 2001 From: jprochazk Date: Wed, 11 Sep 2024 16:30:32 +0200 Subject: [PATCH] undo --- crates/top/re_sdk/src/web_viewer.rs | 12 ++++++------ run_wasm/src/main.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/top/re_sdk/src/web_viewer.rs b/crates/top/re_sdk/src/web_viewer.rs index 94ed2b58db58..4dd7d988be75 100644 --- a/crates/top/re_sdk/src/web_viewer.rs +++ b/crates/top/re_sdk/src/web_viewer.rs @@ -60,9 +60,9 @@ impl WebViewerSink { let viewer_url = format!("{http_web_viewer_url}?url={ws_server_url}"); re_log::info!("Hosting a web-viewer at {viewer_url}"); - // if open_browser { - // webbrowser::open(&viewer_url).ok(); - // } + if open_browser { + webbrowser::open(&viewer_url).ok(); + } Ok(Self { open_browser, @@ -132,9 +132,9 @@ pub fn host_web_viewer( } re_log::info!("Hosting a web-viewer at {viewer_url}"); - // if open_browser { - // webbrowser::open(&viewer_url).ok(); - // } + if open_browser { + webbrowser::open(&viewer_url).ok(); + } Ok(web_server) } diff --git a/run_wasm/src/main.rs b/run_wasm/src/main.rs index dd77490674a6..9f9092e6af20 100644 --- a/run_wasm/src/main.rs +++ b/run_wasm/src/main.rs @@ -93,7 +93,7 @@ fn main() { // Open browser tab. let viewer_url = format!("http://{host}:{port}",); - // webbrowser::open(&viewer_url).ok(); + webbrowser::open(&viewer_url).ok(); println!("Opening browser at {viewer_url}"); std::thread::sleep(Duration::from_secs(u64::MAX));