Skip to content

How to modify the URL in the runtime window? #6327

Answered by FabianLars
InfernalAzazel asked this question in Q&A
Discussion options

You must be logged in to vote

something like this

let main_window =app.get_window("main").unwrap();
let _ = main_window.eval("window.location.replace('https://google.com')");

At some point there will exist an actual API for that.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@InfernalAzazel
Comment options

@InfernalAzazel
Comment options

@FabianLars
Comment options

Answer selected by FabianLars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6324 on February 20, 2023 20:42.