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

[feat] withGlobalTauri for plugins #380

Closed
ManeraKai opened this issue May 20, 2023 · 2 comments · Fixed by #383
Closed

[feat] withGlobalTauri for plugins #380

ManeraKai opened this issue May 20, 2023 · 2 comments · Fixed by #383
Labels
enhancement New feature or request

Comments

@ManeraKai
Copy link

ManeraKai commented May 20, 2023

If I want to access tauri fs API through Vanilla JS, I would use window.__TAURI__.fs, by enabling withGlobalTauri.
Though I'm also using fs-watch plugin, how would I use it through the window.__TAURI__ variable?

@FabianLars FabianLars added the enhancement New feature or request label May 20, 2023
@FabianLars
Copy link
Member

I marked this as a feature request since we don't have this implemented. In the meantime you could download this file https://github.com/tauri-apps/tauri-plugin-fs-watch/blob/v1/dist-js/index.min.js into your project.

@amrbashir amrbashir changed the title [docs] withGlobalTauri for plugins [feat] withGlobalTauri for plugins May 20, 2023
@lucasfernog lucasfernog linked a pull request May 21, 2023 that will close this issue
@FabianLars
Copy link
Member

This was implemented for the v2 versions of the plugins and i doubt we will backport that change to the v1 ones. Since there's a workaround mentioned above i'm going to close this issue. Thanks for the request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants