浏览代码

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`.
Ishaan Goel 11 月之前
父节点
当前提交
c85bb0fb61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tooling/api/src/webview.ts

+ 1 - 1
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);