|
@@ -45,7 +45,7 @@ export enum TauriEvent {
|
|
|
* ```typescript
|
|
|
* import { listen } from '@tauri-apps/api/event';
|
|
|
* const unlisten = await listen<string>('error', (event) => {
|
|
|
- * console.log(`Got error in window ${event.windowLabel}, payload: ${payload}`);
|
|
|
+ * console.log(`Got error in window ${event.windowLabel}, payload: ${event.payload}`);
|
|
|
* });
|
|
|
*
|
|
|
* // you need to call unlisten if your handler goes out of scope e.g. the component is unmounted
|