We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8696a8 commit a581037Copy full SHA for a581037
src/main.rs
@@ -31,7 +31,7 @@ pub async fn track_previous_url() {
31
let previous_domain = if document().referrer() == "" {
32
let mut res = "Undefined".to_owned();
33
if let Some(from) = document().location() {
34
- if let Ok(url) = Url::new(&from.href().unwrap_or_default()) {
+ if let Ok(url) = Url::new(&from.href().unwrap_or_default()) {
35
let search_params = url.search_params();
36
res = search_params.get("from").unwrap_or("Undefined".to_string());
37
}
0 commit comments