Load Remote Content in Main Window #12360
-
Hi there, I was curious to try out Tauri as a more lightweight replacement for Electron, and I've enjoyed it a lot so far, thanks. I am interested to clarify the extent to which Tauri can load remote content. I have come across some answers, but they seem to refer to this occurring specifically on initialization (unless I'm wrong):
I actually want to replace the window location with a URL configured by a user during an initial setup - is this possible? The answer may be out there but I've not found anything that's worked for me. Essentially I am presenting an
I see you can access the window in commands but not entirely sure how to approach it as I'm not having any success. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I mean, the |
Beta Was this translation helpful? Give feedback.
-
@FabianLars Thanks, that worked, I'm just a bit slow. |
Beta Was this translation helpful? Give feedback.
I mean, the
window.location.replace
thing is literally plain javascript so you can call this in your index.html file as well.