Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 367 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 367 Bytes

Calling Tauri APIs from an iframe in isolation mode

Steps to reproduce:

  • npm run tauri dev
  • Inspect element and open the JS console
  • Ensure you're running in the context of www.example.com (verify with window.location)
  • Execute await window.__TAURI_INVOKE__("greet", { name: "From iframe" })
  • See Greeting From iframe from Rust in your terminal