From 01d9698bfacced01f7653f6f8258f4566e21a336 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 14 Nov 2025 17:00:04 -0300 Subject: [PATCH] fix(webview): correct path to tables.html in WebviewWindowBuilder The path to tables.html in WebviewWindowBuilder was incorrectly set to "../web/desktop/tables.html". This was fixed to use the correct relative path "tables.html" to ensure the webview loads the file from the proper location. The change maintains the same functionality while using the correct path structure. --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9f746667a..436d0fae8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -292,11 +292,11 @@ async fn main() -> std::io::Result<()> { .setup(|app| { use tauri::WebviewWindowBuilder; - match WebviewWindowBuilder::new( - app, - "main", - tauri::WebviewUrl::App("../web/desktop/tables.html".into()), - ) + match WebviewWindowBuilder::new( + app, + "main", + tauri::WebviewUrl::App("tables.html".into()), + ) .build() { Ok(_window) => Ok(()), Err(e) if e.to_string().contains("WebviewLabelAlreadyExists") => { @@ -318,7 +318,7 @@ async fn main() -> std::io::Result<()> { return Ok(()); } - // Normal server start continues here + // Normal server start continues here`` let server_result = HttpServer::new(move || { let cors = Cors::default() .allow_any_origin()