Skip to content

Commit

Permalink
debug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Oct 6, 2024
1 parent 7fc122a commit 8fcb053
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src-tauri/capabilities/debug.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"windows": ["splash", "chatapplication"],
"remote": {
"urls": [
"https://localhost:3000/*",
"https://localhost:3000",
"https://localhost:3000/"
"http://localhost:3000/*",
"http://localhost:3000",
"http://localhost:3000/"
]
},
"permissions": [
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ async fn launch(mut window: WebviewWindow, _app: AppHandle) {
{
#[cfg(debug_assertions)]
_app.add_capability(include_str!("../capabilities/debug.json"));

#[cfg(debug_assertions)]
let url = WebviewUrl::External(Url::parse("http://localhost:5000/").unwrap());
let url = WebviewUrl::External(Url::parse("http://localhost:3000/").unwrap());

#[cfg(not(debug_assertions))]
let url = WebviewUrl::External(Url::parse("https://amber-dchat.github.io/").unwrap());
Expand Down

0 comments on commit 8fcb053

Please sign in to comment.