Skip to content

Commit

Permalink
fix(core): Notification.requestPermission() deadlock regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Aug 24, 2021
1 parent 40d08a6 commit 48f3768
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 134 deletions.
5 changes: 5 additions & 0 deletions .changes/notification-regression.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Fixes `Notification.requestPermission()` deadlock.
2 changes: 1 addition & 1 deletion core/tauri/src/endpoints.rs
Expand Up @@ -126,7 +126,7 @@ impl Module {
})
}
}
Self::Notification(cmd) => resolver.respond_closure(move || {
Self::Notification(cmd) => resolver.respond_async(async move {
cmd
.run(window, config, &package_info)
.and_then(|r| r.json)
Expand Down

0 comments on commit 48f3768

Please sign in to comment.