mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(tauri): extra path level in runner.rs
This file is one folder deeper than the other files which reference this env. This env is a relative folder reference so we need to concat an extra folder traversal into it.
This commit is contained in:
@@ -63,7 +63,7 @@ pub(crate) fn run(application: &mut App) -> crate::Result<()> {
|
||||
#[cfg(feature = "dev-server")]
|
||||
webview
|
||||
.handle()
|
||||
.dispatch(|_webview| _webview.eval(include_str!(concat!(env!("TAURI_DIR"), "/tauri.js"))))?;
|
||||
.dispatch(|_webview| _webview.eval(include_str!(concat!("../", env!("TAURI_DIR"), "/tauri.js"))))?;
|
||||
|
||||
// spawn the embedded server on our server url
|
||||
#[cfg(feature = "embedded-server")]
|
||||
@@ -237,7 +237,7 @@ fn build_webview(
|
||||
// inject the tauri.js entry point
|
||||
webview
|
||||
.handle()
|
||||
.dispatch(|_webview| _webview.eval(include_str!(concat!(env!("TAURI_DIR"), "/tauri.js"))))?;
|
||||
.dispatch(|_webview| _webview.eval(include_str!(concat!("../", env!("TAURI_DIR"), "/tauri.js"))))?;
|
||||
}
|
||||
|
||||
Ok(webview)
|
||||
|
||||
Reference in New Issue
Block a user