From 9eeaf856053c725356a799ec59b393b1d648ad33 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 15 Apr 2024 09:48:44 +0800 Subject: [PATCH] Fix example for newer tauri version `onDragDropEvent` -> `onFileDropEvent` --- examples/api/src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index 2891fa1d..117afa22 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -36,7 +36,7 @@ }); } - getCurrentWebview().onDragDropEvent((event) => { + getCurrentWebview().onFileDropEvent((event) => { onMessage(`File drop: ${JSON.stringify(event.payload)}`); });