Browse Source

fix: correct invoke command for toggling devtools by hotkey, closes #8771 (#8793)

Jason Tsai 1 year ago
parent
commit
8751c3299f

+ 5 - 0
.changes/fix-invoke-devtools-by-hotkey.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch:bug
+---
+
+Fix invoking toggle devtools by hotkey.

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

@@ -14,7 +14,7 @@
     document.addEventListener('keydown', (event) => {
       if (isHotkey(event)) {
         window.__TAURI_INTERNALS__.invoke(
-          'plugin:window|internal_toggle_devtools'
+          'plugin:webview|internal_toggle_devtools'
         )
       }
     })