From 938b5a9360b0f1cca7153584e2011e77d0f97512 Mon Sep 17 00:00:00 2001 From: Lars Berger Date: Mon, 23 Sep 2024 14:54:24 +0800 Subject: [PATCH] refactor: update `to_asset_url` comment --- packages/desktop/src/window_factory.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/desktop/src/window_factory.rs b/packages/desktop/src/window_factory.rs index b20649be..649e2c65 100644 --- a/packages/desktop/src/window_factory.rs +++ b/packages/desktop/src/window_factory.rs @@ -188,14 +188,14 @@ impl WindowFactory { Ok(()) } - /// Converts a config path to a Tauri asset URL. + /// Converts a file path to a Tauri asset URL. /// /// Returns a string that can be used as a webview URL. - pub fn to_asset_url(config_path: &str) -> String { + pub fn to_asset_url(file_path: &str) -> String { if cfg!(target_os = "windows") { - format!("http://asset.localhost/{}", config_path) + format!("http://asset.localhost/{}", file_path) } else { - format!("asset://localhost/{}", config_path) + format!("asset://localhost/{}", file_path) } }