Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed Sep 11, 2024
1 parent a68c9f3 commit 1025fdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions crates/top/re_sdk/src/web_viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion run_wasm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 1025fdf

Please sign in to comment.