mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-10 14:13:55 +02:00
fix(notification): permission on mobile returns prompt (#627)
This commit is contained in:
committed by
GitHub
parent
a1738b2401
commit
8902fe9adf
@@ -236,7 +236,7 @@ impl<'de> Deserialize<'de> for PermissionState {
|
||||
match s.to_lowercase().as_str() {
|
||||
"granted" => Ok(Self::Granted),
|
||||
"denied" => Ok(Self::Denied),
|
||||
"default" => Ok(Self::Unknown),
|
||||
"prompt" => Ok(Self::Unknown),
|
||||
_ => Err(DeError::custom(format!("unknown permission state '{s}'"))),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user