mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 11:22:04 +00:00
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:
parent
28b9e7c7b8
commit
bda1d22369
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user