Skip to content

Commit 8751c32

Browse files
authored
fix: correct invoke command for toggling devtools by hotkey, closes #8771 (#8793)
1 parent 2e6db90 commit 8751c32

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Fix invoking toggle devtools by hotkey.

core/tauri/src/webview/scripts/toggle-devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
document.addEventListener('keydown', (event) => {
1515
if (isHotkey(event)) {
1616
window.__TAURI_INTERNALS__.invoke(
17-
'plugin:window|internal_toggle_devtools'
17+
'plugin:webview|internal_toggle_devtools'
1818
)
1919
}
2020
})

0 commit comments

Comments
 (0)