fix: devtools command compatibility + add devtools feature flag
This commit is contained in:
@ -2,9 +2,5 @@ use tauri::{command, Webview};
|
||||
|
||||
#[command]
|
||||
pub async fn toggle_devtools(webview: Webview) {
|
||||
if webview.is_devtools_open() {
|
||||
webview.close_devtools();
|
||||
} else {
|
||||
webview.open_devtools();
|
||||
}
|
||||
webview.open_devtools();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user