You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/tauri-cli/config.schema.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -498,6 +498,13 @@
498
498
"description": "Sets whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android. Defaults to `false`.\n\n ## Note\n\n Using a `https` scheme will NOT allow mixed content when trying to fetch `http` endpoints and therefore will not match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.\n\n ## Warning\n\n Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.",
499
499
"default": false,
500
500
"type": "boolean"
501
+
},
502
+
"devtools": {
503
+
"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.",
Copy file name to clipboardExpand all lines: crates/tauri-schema-generator/schemas/config.schema.json
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -498,6 +498,13 @@
498
498
"description": "Sets whether the custom protocols should use `https://<scheme>.localhost` instead of the default `http://<scheme>.localhost` on Windows and Android. Defaults to `false`.\n\n ## Note\n\n Using a `https` scheme will NOT allow mixed content when trying to fetch `http` endpoints and therefore will not match the behavior of the `<scheme>://localhost` protocols used on macOS and Linux.\n\n ## Warning\n\n Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.",
499
499
"default": false,
500
500
"type": "boolean"
501
+
},
502
+
"devtools": {
503
+
"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.",
Copy file name to clipboardExpand all lines: crates/tauri-utils/src/config.rs
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1533,6 +1533,16 @@ pub struct WindowConfig {
1533
1533
/// Changing this value between releases will change the IndexedDB, cookies and localstorage location and your app will not be able to access the old data.
1534
1534
#[serde(default, alias = "use-https-scheme")]
1535
1535
pubuse_https_scheme:bool,
1536
+
/// Enable web inspector which is usually called browser devtools. Enabled by default.
1537
+
///
1538
+
/// This API works in **debug** builds, but requires `devtools` feature flag to enable it in **release** builds.
1539
+
///
1540
+
/// ## Platform-specific
1541
+
///
1542
+
/// - macOS: This will call private functions on **macOS**.
1543
+
/// - Android: Open `chrome://inspect/#devices` in Chrome to get the devtools window. Wry's `WebView` devtools API isn't supported on Android.
1544
+
/// - iOS: Open Safari > Develop > [Your Device Name] > [Your WebView] to get the devtools window.
1545
+
pubdevtools:Option<bool>,
1536
1546
}
1537
1547
1538
1548
implDefaultforWindowConfig{
@@ -1583,6 +1593,7 @@ impl Default for WindowConfig {
1583
1593
zoom_hotkeys_enabled:false,
1584
1594
browser_extensions_enabled:false,
1585
1595
use_https_scheme:false,
1596
+
devtools:None,
1586
1597
}
1587
1598
}
1588
1599
}
@@ -2556,6 +2567,7 @@ mod build {
2556
2567
let zoom_hotkeys_enabled = self.zoom_hotkeys_enabled;
2557
2568
let browser_extensions_enabled = self.browser_extensions_enabled;
0 commit comments