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] Enable devtools only for certain webviews #10849

Open
Charlie-XIAO opened this issue Aug 31, 2024 · 0 comments · May be fixed by #11451
Open

[feat] Enable devtools only for certain webviews #10849

Charlie-XIAO opened this issue Aug 31, 2024 · 0 comments · May be fixed by #11451

Comments

@Charlie-XIAO
Copy link

Describe the problem

Currently the devtools features enables the webview devtools for all webviews.

#[cfg(any(debug_assertions, feature = "devtools"))]
{
webview_builder = webview_builder.with_devtools(true);
}

I want to enable it for only a certain webview window. My use case is, I have an app that has a canvas and a manager. I want to have devtools in the canvas window in the release build so that users can inspect the elements, but not for the manager window.

Describe the solution you'd like

I noticed that WebviewBuilder in wry has the with_devtools method. Is it possible to have the same on WebviewWindowBuilder in tauri?

Alternatives considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant