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] Add window.navigate_to_url #776

Closed
tauri-bot opened this issue Nov 29, 2022 · 0 comments · Fixed by #773
Closed

[feat] Add window.navigate_to_url #776

tauri-bot opened this issue Nov 29, 2022 · 0 comments · Fixed by #773

Comments

@tauri-bot
Copy link

This issue has been upstreamed from tauri-apps/tauri#5716

Describe the problem

Now, We change the window url in a clumsy way.

The solution comes from #5377

main_window.eval(&format!("window.location.replace('http://localhost:{}')", "1234"));

Describe the solution you'd like

I think we can provide a new mod named location under window instance, The function of location can be partially similar to Window.location

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