Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invoke calls in dialog & shell init scripts #675

Merged
merged 7 commits into from
Oct 22, 2023

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