* fix(core): fix typo in notifications, closes #2330 * Update core-notification-typo.md * [skip ci]
@@ -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',