Migrate tauri to new config

This commit is contained in:
Vladimir Stoilov
2024-04-24 15:30:46 +03:00
parent 7ee1faa68c
commit f15958b091
15 changed files with 193 additions and 82 deletions

View File

@@ -143,6 +143,11 @@ pub fn may_navigate_to_ui(win: &mut WebviewWindow, force: bool) {
#[cfg(debug_assertions)]
{
// Only for dev build
// Allow connection to http://localhost:4200
let capabilities = include_str!("../capabilities/default.json")
.replace("http://localhost:817", "http://localhost:4200");
let _ = win.add_capability(capabilities);
debug!("[tauri] navigating to http://localhost:4200");
win.navigate("http://localhost:4200".parse().unwrap());
}