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.
This commit is contained in:
Braden Wong
2025-10-29 00:34:16 -07:00
committed by GitHub
parent 28b9e7c7b8
commit bda1d22369

View File

@@ -102,8 +102,8 @@ class WebviewWindow {
* Gets the Webview for the webview associated with the given label.
* @example
* ```typescript
* import { Webview } from '@tauri-apps/api/webviewWindow';
* const mainWebview = Webview.getByLabel('main');
* import { WebviewWindow } from '@tauri-apps/api/webviewWindow';
* const mainWebview = WebviewWindow.getByLabel('main');
* ```
*
* @param label The webview label.