Skip to content

I can find window.__TAURI_INTERNALS__.invoke but not window.__TAURI__.invoke #11586

Answered by FabianLars
mimhof1 asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at your tauri.conf.json file it's indeed this part of my message:

The only thing that should be required for this is to enable build.withGlobalTauri in v1 or app.withGlobalTauri in v2 in tauri.conf.json.

Since you're using v2, the app block should look like this

{
  "app": {
    "withGlobalTauri": true,
    "windows": ["keep what you had, i'm just too lazy to type"],
    "security": {
      "csp": null
    }
  }
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@FabianLars
Comment options

Answer selected by mimhof1
@mimhof1
Comment options

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants