Skip to content

Fix invoke calls in dialog & shell init scripts#675

Merged
lucasfernog merged 7 commits intotauri-apps:v2from
morajabi:v2
Oct 22, 2023
Merged

Fix invoke calls in dialog & shell init scripts#675
lucasfernog merged 7 commits intotauri-apps:v2from
morajabi:v2

Conversation

@morajabi
Copy link
Contributor

@morajabi morajabi commented Oct 21, 2023

This fixes an issue that broke links and dialogs in latest commit. Let me know if I should do it in another way.

@morajabi morajabi requested a review from a team as a code owner October 21, 2023 10:31
@amrbashir
Copy link
Member

amrbashir commented Oct 21, 2023

Looks like we missed this one in #673, these files should now be converted to a typescript file and compiled using rollup, similar to the notification plugins

@morajabi
Copy link
Contributor Author

morajabi commented Oct 21, 2023

For people who have this issue, here's a workaround without patching until this is fixed. Add this line in your entry JS/TS file:

 window.invoke = window.__TAURI_INTERNALS__.invoke;

@morajabi
Copy link
Contributor Author

@amrbashir Feel free to close this PR if this isn't the way you want to handle it.

@lucasfernog lucasfernog merged commit beb6b13 into tauri-apps:v2 Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants