Add domain history clear confirmation

This commit is contained in:
2026-05-08 04:21:02 -04:00
parent 02279f8984
commit 71750114a6
7 changed files with 393 additions and 132 deletions
+7
View File
@@ -52,6 +52,13 @@ impl UrlText {
.unwrap_or_else(|| self.value.clone())
}
#[must_use]
pub fn host(&self) -> Option<String> {
Url::parse(&self.value)
.ok()
.and_then(|url| url.host_str().map(|host| host.to_ascii_lowercase()))
}
#[must_use]
pub fn display_url(&self) -> String {
let Ok(url) = Url::parse(&self.value) else {