Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/DevLog/
AliasPath.rs

1//! Replace the long Tauri app-data prefix with `$APP` so
2//! `Trace=short` lines stay readable.
3
4use crate::IPC::DevLog::AppDataPrefix;
5
6pub fn Fn(Input:&str) -> String {
7	if let Some(Prefix) = AppDataPrefix::Fn() {
8		Input.replace(Prefix, "$APP")
9	} else {
10		Input.to_string()
11	}
12}