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

The __TAURI_POST_MESSAGE__ in init.js was depreciated in tauri 2.0 #697

Open
sopaco opened this issue Apr 2, 2024 · 1 comment
Open

Comments

@sopaco
Copy link

sopaco commented Apr 2, 2024

the custom plugin script use TAURI_POST_MESSAGE to communicate between the Rust and JavaScript, but this property has changed in tauri since 2.0, see:tauri-apps/tauri@a63e71f

why not use window.__TAURI__.invoke, a standard api in tauri?

code in tauri framework:
image

code in mdSilo:
image

@sopaco sopaco changed the title The __TAURI_POST_MESSAGE__ in the init.js depreciated in tauri? The __TAURI_POST_MESSAGE__ in the init.js depreciated in tauri 2.0 Apr 2, 2024
@sopaco sopaco changed the title The __TAURI_POST_MESSAGE__ in the init.js depreciated in tauri 2.0 The __TAURI_POST_MESSAGE__ in init.js was depreciated in tauri 2.0 Apr 2, 2024
@danloh
Copy link
Collaborator

danloh commented Apr 3, 2024

Thanks for the suggestion.

Still working on the plugin, just do some proof of concept.

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

No branches or pull requests

2 participants