Skip to content

Commit bda1d22

Browse files
authored
docs(webviewWindow): fix incorrect import in JSDoc example (#14388)
The getByLabel method is a static method on WebviewWindow, not Webview. Updated the JSDoc example to import and use the correct class name.
1 parent 28b9e7c commit bda1d22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/api/src/webviewWindow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class WebviewWindow {
102102
* Gets the Webview for the webview associated with the given label.
103103
* @example
104104
* ```typescript
105-
* import { Webview } from '@tauri-apps/api/webviewWindow';
106-
* const mainWebview = Webview.getByLabel('main');
105+
* import { WebviewWindow } from '@tauri-apps/api/webviewWindow';
106+
* const mainWebview = WebviewWindow.getByLabel('main');
107107
* ```
108108
*
109109
* @param label The webview label.

0 commit comments

Comments
 (0)