diff --git a/crates/tauri-cli/config.schema.json b/crates/tauri-cli/config.schema.json index b900f0d41..8a92f3ac2 100644 --- a/crates/tauri-cli/config.schema.json +++ b/crates/tauri-cli/config.schema.json @@ -488,7 +488,7 @@ "type": "boolean" }, "devtools": { - "description": "Enable web inspector which is usually called browser devtools.\n\n It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds.\n\n ## Platform-specific\n\n - macOS: This will call private functions on **macOS**.\n - Android: Open `chrome://inspect/#devices` in Chrome to get the devtools window. Wry's `WebView` devtools API isn't supported on Android.\n - iOS: Open Safari > Develop > [Your Device Name] > [Your WebView] to get the devtools window.", + "description": "Enable web inspector which is usually called browser devtools. Enabled by default.\n\n This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds.\n\n ## Platform-specific\n\n - macOS: This will call private functions on **macOS**.\n - Android: Open `chrome://inspect/#devices` in Chrome to get the devtools window. Wry's `WebView` devtools API isn't supported on Android.\n - iOS: Open Safari > Develop > [Your Device Name] > [Your WebView] to get the devtools window.", "type": [ "boolean", "null" diff --git a/crates/tauri-runtime/src/webview.rs b/crates/tauri-runtime/src/webview.rs index 934a2ad88..0a14bdd88 100644 --- a/crates/tauri-runtime/src/webview.rs +++ b/crates/tauri-runtime/src/webview.rs @@ -382,9 +382,9 @@ impl WebviewAttributes { self } - /// Whether web inspector, which is usually called browser devtools, is enabled or not. + /// Whether web inspector, which is usually called browser devtools, is enabled or not. Enabled by default. /// - /// It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds. + /// This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds. /// /// ## Platform-specific /// diff --git a/crates/tauri-schema-generator/schemas/config.schema.json b/crates/tauri-schema-generator/schemas/config.schema.json index b900f0d41..8a92f3ac2 100644 --- a/crates/tauri-schema-generator/schemas/config.schema.json +++ b/crates/tauri-schema-generator/schemas/config.schema.json @@ -488,7 +488,7 @@ "type": "boolean" }, "devtools": { - "description": "Enable web inspector which is usually called browser devtools.\n\n It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds.\n\n ## Platform-specific\n\n - macOS: This will call private functions on **macOS**.\n - Android: Open `chrome://inspect/#devices` in Chrome to get the devtools window. Wry's `WebView` devtools API isn't supported on Android.\n - iOS: Open Safari > Develop > [Your Device Name] > [Your WebView] to get the devtools window.", + "description": "Enable web inspector which is usually called browser devtools. Enabled by default.\n\n This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds.\n\n ## Platform-specific\n\n - macOS: This will call private functions on **macOS**.\n - Android: Open `chrome://inspect/#devices` in Chrome to get the devtools window. Wry's `WebView` devtools API isn't supported on Android.\n - iOS: Open Safari > Develop > [Your Device Name] > [Your WebView] to get the devtools window.", "type": [ "boolean", "null" diff --git a/crates/tauri-utils/src/config.rs b/crates/tauri-utils/src/config.rs index 048feff43..9d2816e18 100644 --- a/crates/tauri-utils/src/config.rs +++ b/crates/tauri-utils/src/config.rs @@ -1486,9 +1486,9 @@ pub struct WindowConfig { /// - **MacOS / Linux / iOS / Android** - Unsupported. #[serde(default)] pub browser_extensions_enabled: bool, - /// Enable web inspector which is usually called browser devtools. + /// Enable web inspector which is usually called browser devtools. Enabled by default. /// - /// It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds. + /// This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds. /// /// ## Platform-specific /// diff --git a/crates/tauri/src/webview/mod.rs b/crates/tauri/src/webview/mod.rs index d032de931..061ca6c01 100644 --- a/crates/tauri/src/webview/mod.rs +++ b/crates/tauri/src/webview/mod.rs @@ -788,9 +788,9 @@ fn main() { self } - /// Whether web inspector, which is usually called browser devtools, is enabled or not. + /// Whether web inspector, which is usually called browser devtools, is enabled or not. Enabled by default. /// - /// It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds. + /// This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds. /// /// ## Platform-specific /// diff --git a/crates/tauri/src/webview/webview_window.rs b/crates/tauri/src/webview/webview_window.rs index 73dddaec8..06a2f4c4c 100644 --- a/crates/tauri/src/webview/webview_window.rs +++ b/crates/tauri/src/webview/webview_window.rs @@ -897,9 +897,9 @@ impl<'a, R: Runtime, M: Manager> WebviewWindowBuilder<'a, R, M> { self } - /// Whether web inspector, which is usually called browser devtools, is enabled or not. + /// Whether web inspector, which is usually called browser devtools, is enabled or not. Enabled by default. /// - /// It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds. + /// This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds. /// /// ## Platform-specific /// diff --git a/packages/api/src/webview.ts b/packages/api/src/webview.ts index 38f162d64..69fca395c 100644 --- a/packages/api/src/webview.ts +++ b/packages/api/src/webview.ts @@ -729,9 +729,9 @@ interface WebviewOptions { */ zoomHotkeysEnabled?: boolean /** - * Whether web inspector, which is usually called browser devtools, is enabled or not. + * Whether web inspector, which is usually called browser devtools, is enabled or not. Enabled by default. * - * It is enabled in **debug** builds, but requires `devtools` feature flag to actually enable it in **release** builds. + * This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds. * * #### Platform-specific *