Replies: 1 comment
-
Did you know about the built-in Otherwise the docs seem to show exactly what you're asking for, no? https://docs.rs/tauri/2.0.0-beta/tauri/struct.Builder.html#method.register_uri_scheme_protocol |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am from Electron to Tauri 2.0
I use svelte, and if when it's run at localhost, work with default url(https://localhost:1420/data/list.json). If run from app(Electron/Tauri),I register a protocol, catch the scheme and change uri to local path(mac ~/Datacenter/list.json or windows E:\Datacenter\list.json).
this is my lib.rs, I can get the uri, how to get file and return the json? all documents is js, no rust version.
svelte code like this
How to fetch the json data when work in Tauri 2.0?
Beta Was this translation helpful? Give feedback.
All reactions