mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 12:27:16 +03:00
* fix(core): fix typo in notifications, closes #2330 * Update core-notification-typo.md * [skip ci]
This commit is contained in:
parent
4678144e22
commit
cf9f6aa148
5
.changes/core-notification-typo.md
Normal file
5
.changes/core-notification-typo.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fix `Notification.requestPermission()` throwing `Unhandled Promise Rejection: TypeError: undefined is not a function (near '...window.__TAURI__.invoke...')`
|
@ -260,7 +260,7 @@ if (!String.prototype.startsWith) {
|
||||
|
||||
function requestPermission() {
|
||||
return window.__TAURI__
|
||||
.invoke(
|
||||
._invoke(
|
||||
'tauri',
|
||||
{
|
||||
__tauriModule: 'Notification',
|
||||
|
Loading…
Reference in New Issue
Block a user