mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 17:28:12 +08:00
Fix several bugs causing warning spam in the console (#4547)
This commit is contained in:
@@ -174,7 +174,8 @@ async fn request_persistence() {
|
||||
match storage.persist() {
|
||||
Ok(promise) => match JsFuture::from(promise).await {
|
||||
Ok(value) if value.as_bool() == Some(true) => {}
|
||||
Ok(_) => log::warn!("OPFS persistence was not granted; browser may evict resources under storage pressure"),
|
||||
// Browsers deny this by default unless the site is bookmarked, installed, or highly engaged, so it isn't worth a warning
|
||||
Ok(_) => log::trace!("OPFS persistence was not granted; browser may evict resources under storage pressure"),
|
||||
Err(error) => log::warn!("OPFS persist() rejected: {error:?}"),
|
||||
},
|
||||
Err(error) => log::warn!("OPFS persist() threw: {error:?}"),
|
||||
|
||||
Reference in New Issue
Block a user