Skip to main content

codetether_browser/browser/session/
mod.rs

1//! Browser session facade.
2//!
3//! This module exposes the stable session type while delegating execution to
4//! the native TetherScript backend when that feature is enabled.
5
6#[cfg(feature = "tetherscript")]
7mod native;
8mod runtime;
9mod state;
10
11/// Cloneable browser session handle.
12pub use state::BrowserSession;
13
14/// Return the detected external browser executable, if one is required.
15///
16/// Native TetherScript browserctl does not depend on Chromium or another
17/// external browser process, so this currently returns `None`.
18pub fn detect_browser() -> Option<std::path::PathBuf> {
19    None
20}