Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 25162cc

Browse filesBrowse files
authored
Fix assets path (#699)
1 parent edc5cf5 commit 25162cc
Copy full SHA for 25162cc

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎pgml-dashboard/src/utils/config.rs

Copy file name to clipboardExpand all lines: pgml-dashboard/src/utils/config.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn css_url() -> String {
7373
let path = format!("/dashboard/static/css/{filename}");
7474

7575
match var("ASSETS_DOMAIN") {
76-
Ok(domain) => format!("https://{domain}/{path}"),
76+
Ok(domain) => format!("https://{domain}{path}"),
7777
Err(_) => path,
7878
}
7979
}
@@ -95,7 +95,7 @@ pub fn js_url(name: &str) -> String {
9595
let path = format!("/dashboard/static/js/{name}");
9696

9797
match var("ASSETS_DOMAIN") {
98-
Ok(domain) => format!("https://{domain}/{path}"),
98+
Ok(domain) => format!("https://{domain}{path}"),
9999
Err(_) => path,
100100
}
101101
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.