fix(core): fix typo in notifications, closes #2330 (#2331)

* fix(core): fix typo in notifications, closes #2330

* Update core-notification-typo.md

* [skip ci]
This commit is contained in:
Amr Bashir 2021-08-02 04:45:36 +02:00 committed by GitHub
parent 4678144e22
commit cf9f6aa148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fix `Notification.requestPermission()` throwing `Unhandled Promise Rejection: TypeError: undefined is not a function (near '...window.__TAURI__.invoke...')`

View File

@ -260,7 +260,7 @@ if (!String.prototype.startsWith) {
function requestPermission() {
return window.__TAURI__
.invoke(
._invoke(
'tauri',
{
__tauriModule: 'Notification',