Browse Source

fix(core): wrong usage of wry RPC on event API (#1351)

Lucas Fernandes Nogueira 4 years ago
parent
commit
d857a2f4fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tauri/src/app/utils.rs

+ 1 - 1
tauri/src/app/utils.rs

@@ -113,7 +113,7 @@ fn event_initialization_script() -> String {
       }}
 
       if (listeners.length > 0) {{
-        window.__TAURI__.invoke({{
+        window.__TAURI__.invoke('tauri', {{
           __tauriModule: 'Internal',
           message: {{
             cmd: 'validateSalt',