INNER CODE UNIT · Rust
execute_script
versotile-org/verso · verso/src/lib.rs:207
pub fn execute_script(&self, script: String) -> Result<(), Box<ipc_channel::ErrorKind>> {
self.sender.send(ToVersoMessage::ExecuteScript(script))
}
/// Navigate to url
pub fn navigate(&self, url: url::Url) -> Result<(), Box<ipc_channel::ErrorKind>> {
self.sender.send(ToVersoMessage::NavigateTo(url))
}
/// Reload the current webview
pub fn reload(&self) -> Result<(), Box<ipc_channel::ErrorKind>> {
self.sender.send(ToVersoMessage::Reload)
}
/// Listen on navigation starting triggered by user click on a link,
/// return a boolean in the callback to decide whether or not allowing this navigation
pub fn on_navigation_starting(
&self,