feat: the development environment automatically opens the console in the main window (#182)

This commit is contained in:
ayangweb
2025-02-24 15:39:31 +08:00
committed by GitHub
parent 51c49824dd
commit b52b18edc7

View File

@@ -19,5 +19,9 @@ pub use windows::*;
pub use linux::*;
pub fn default(app: &mut App, main_window: WebviewWindow, settings_window: WebviewWindow) {
// Development mode automatically opens the console: https://tauri.app/develop/debug
#[cfg(any(dev, debug_assertions))]
main_window.open_devtools();
platform(app, main_window.clone(), settings_window.clone());
}
}