-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Allow setting init script through cli #246
base: main
Are you sure you want to change the base?
Conversation
src/webview.rs
Outdated
@@ -82,6 +83,11 @@ impl Window { | |||
w | |||
); | |||
} | |||
EmbedderMsg::LoadStart => { | |||
if let Some(init_script) = &self.init_script { | |||
execute_script_async(&sender, &webview_id, init_script); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't it just use usercript?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to use it later on for the webview controller's APIs, for the CLI usage, we can also add in userscript along side this, since that one needs to take a file instead of a string
No description provided.