From c85bb0fb617fd38a55ec04d4eb0d7607339c12eb Mon Sep 17 00:00:00 2001 From: Ishaan Goel <46309254+ishaan26@users.noreply.github.com> Date: Tue, 27 Aug 2024 22:45:08 +0530 Subject: [PATCH] fix(docs): typo in documentation of `setSize()` method in Webview API. (#10798) The example for the `setSize()` method in the documentation wrongly imports `getCurrent` (I believe as was in tauri v1) instead of `getCurrentWebview`. --- tooling/api/src/webview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/api/src/webview.ts b/tooling/api/src/webview.ts index 091ea2c2b90..f357f2c24d2 100644 --- a/tooling/api/src/webview.ts +++ b/tooling/api/src/webview.ts @@ -526,7 +526,7 @@ class Webview { * * @example * ```typescript - * import { getCurrent } from "@tauri-apps/api/webview"; + * import { getCurrentWebview } from "@tauri-apps/api/webview"; * const unlisten = await getCurrentWebview().onDragDropEvent((event) => { * if (event.payload.type === 'hover') { * console.log('User hovering', event.payload.paths);