External URL with custom script #4822
Answered
by
FabianLars
MrAmericanMike
asked this question in
Q&A
-
I'm sure this is probably explained somewhere, but I was not able to find it. The goal is to have Tauri opening an external website while loading a local javascript file on it. (Like a 'preload' in Electron) Thanks everyone in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Aug 1, 2022
Replies: 1 comment 1 reply
-
That's only possible if you create the window in rust and via this method: https://docs.rs/tauri/latest/tauri/window/struct.WindowBuilder.html#method.initialization_script |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MrAmericanMike
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's only possible if you create the window in rust and via this method: https://docs.rs/tauri/latest/tauri/window/struct.WindowBuilder.html#method.initialization_script