Browse Source

Revert "fix(tauri) window.tauri is undefined upon reloading (#377) (#453)" (#454)

This reverts commit d79eb4fc210f1b7baf67a17832a746c420369985.
Tensor-Programming 5 years ago
parent
commit
64367212a9
2 changed files with 0 additions and 4 deletions
  1. 0 3
      tauri/src/endpoints.rs
  2. 0 1
      tauri/src/endpoints/cmd.rs

+ 0 - 3
tauri/src/endpoints.rs

@@ -20,9 +20,6 @@ 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,

+ 0 - 1
tauri/src/endpoints/cmd.rs

@@ -4,7 +4,6 @@ use serde::Deserialize;
 #[serde(tag = "cmd", rename_all = "camelCase")]
 pub enum Cmd {
   Init {},
-  Reload {},
   #[cfg(any(feature = "all-api", feature = "readTextFile"))]
   ReadTextFile {
     path: String,