mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
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`.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user