Skip to content

Commit

Permalink
fix(docs): get_window -> get_webview_window (#2016)
Browse files Browse the repository at this point in the history
fix a bug in this article:
the `get_window` now is 
`get_webview_window`
  • Loading branch information
bitQ2019 authored Apr 2, 2024
1 parent 405612b commit dd47749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/guides/debug/application.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tauri::Builder::default()
.setup(|app| {
#[cfg(debug_assertions)] // only include this code on debug builds
{
let window = app.get_window("main").unwrap();
let window = app.get_webview_window("main").unwrap();
window.open_devtools();
window.close_devtools();
}
Expand Down

0 comments on commit dd47749

Please sign in to comment.