mirror of https://github.com/tauri-apps/tauri
parent
7c0482f9a8
commit
d79eb4fc21
|
@ -20,6 +20,9 @@ pub(crate) fn handle<T: 'static>(webview: &mut WebView<'_, T>, arg: &str) -> cra
|
|||
event_init = event_init
|
||||
))?;
|
||||
}
|
||||
Reload {} => {
|
||||
webview.eval(include_str!(concat!(env!("TAURI_DIR"), "/tauri.js")));
|
||||
}
|
||||
#[cfg(any(feature = "all-api", feature = "readTextFile"))]
|
||||
ReadTextFile {
|
||||
path,
|
||||
|
|
|
@ -4,6 +4,7 @@ use serde::Deserialize;
|
|||
#[serde(tag = "cmd", rename_all = "camelCase")]
|
||||
pub enum Cmd {
|
||||
Init {},
|
||||
Reload {},
|
||||
#[cfg(any(feature = "all-api", feature = "readTextFile"))]
|
||||
ReadTextFile {
|
||||
path: String,
|
||||
|
|
Loading…
Reference in New Issue