Skip to content

Commit 48f3768

Browse files
committed
fix(core): Notification.requestPermission() deadlock regression
1 parent 40d08a6 commit 48f3768

4 files changed

Lines changed: 152 additions & 134 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fixes `Notification.requestPermission()` deadlock.

core/tauri/src/endpoints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Module {
126126
})
127127
}
128128
}
129-
Self::Notification(cmd) => resolver.respond_closure(move || {
129+
Self::Notification(cmd) => resolver.respond_async(async move {
130130
cmd
131131
.run(window, config, &package_info)
132132
.and_then(|r| r.json)

0 commit comments

Comments
 (0)