implement meta description update

This commit is contained in:
yggverse 2024-09-26 01:36:54 +03:00
parent a3ceef5dcb
commit cb270e9f45

View File

@ -83,7 +83,10 @@ impl Page {
"gemini" => { "gemini" => {
// Update // Update
meta.borrow_mut().title = GString::from("Connect"); meta.borrow_mut().title = GString::from("Connect");
//meta.borrow_mut().description = uri.host(); meta.borrow_mut().description = match uri.host() {
Some(host) => host,
None => panic!(),
};
meta.borrow_mut().progress_fraction = 0.25; meta.borrow_mut().progress_fraction = 0.25;
let _ = widget.activate_action("win.update", None); let _ = widget.activate_action("win.update", None);