mdSilo-app icon indicating copy to clipboard operation
mdSilo-app copied to clipboard

The `__TAURI_POST_MESSAGE__` in init.js was depreciated in tauri 2.0

Open sopaco opened this issue 10 months ago • 1 comments

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:https://github.com/tauri-apps/tauri/commit/a63e71f9799e9bbc82521d2f17b5238fbf690e89

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

code in tauri framework: image

code in mdSilo: image

sopaco avatar Apr 02 '24 07:04 sopaco

Thanks for the suggestion.

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

danloh avatar Apr 03 '24 16:04 danloh