mirror of https://github.com/tauri-apps/tauri
* fix(core): fix typo in notifications, closes #2330 * Update core-notification-typo.md * [skip ci]
This commit is contained in:
parent
4678144e22
commit
cf9f6aa148
|
@ -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