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

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
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

+1-1
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)