use tauri::{Runtime, Webview, Window};
pub(crate) fn on_page_load<R: Runtime>(webview: &Webview<R>) {
#[cfg(target_os = "windows")]
crate::windows::handle_page_load(webview);
#[cfg(target_os = "linux")]
crate::linux::handle_page_load(webview);
#[cfg(target_os = "macos")]
crate::macos::handle_page_load(webview);
#[cfg(not(any(target_os = "windows", target_os = "linux", target_os = "macos")))]
let _ = webview;
}
pub(crate) fn on_window_ready<R: Runtime>(window: Window<R>) {
#[cfg(target_os = "macos")]
crate::traffic::setup_traffic_light_positioner(window);
#[cfg(not(target_os = "macos"))]
let _ = window;
}