dependencies update

This commit is contained in:
2024-12-21 23:11:13 +01:00
parent 5e320d2782
commit f568fd35b7
89 changed files with 36761 additions and 19028 deletions
+5 -1
View File
@@ -168,10 +168,14 @@ fn load_autosave() {
.get(&get_autosave_id())
{
let autosave_info: AutosaveInformation = serde_json::from_str(&autosave_str).ok().unwrap();
let d = &JsValue::from_f64(autosave_info.last_saved);
let message = i18n!(
CATALOG,
"Do you want to load the local autosave last edited at {}?";
Date::new(&JsValue::from_f64(autosave_info.last_saved)).to_date_string().as_string().unwrap()
// next line shows 'unexpected token' error on docker image building
//Date::new(&JsValue::from_f64(autosave_info.last_saved)).to_date_string().as_string().unwrap()
Date::new(d).to_date_string().as_string().unwrap()
);
if let Ok(true) = window().unwrap().confirm_with_message(&message) {
set_value("editor-content", &autosave_info.contents);