Преглед на файлове

Fix `Webview.reparent` pointing to wrong Rust API (#10277)

Tony преди 1 година
родител
ревизия
3c17fb64fd
променени са 3 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 5 0
      .changes/api-reparent-focus.md
  2. 0 0
      core/tauri/scripts/bundle.global.js
  3. 1 1
      tooling/api/src/webview.ts

+ 5 - 0
.changes/api-reparent-focus.md

@@ -0,0 +1,5 @@
+---
+'@tauri-apps/api': 'patch:bug'
+---
+
+Fix `Webview.reparent` pointing to `set_webview_focus` instead of `reparent` Rust API

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
core/tauri/scripts/bundle.global.js


+ 1 - 1
tooling/api/src/webview.ts

@@ -500,7 +500,7 @@ class Webview {
    * @returns A promise indicating the success or failure of the operation.
    */
   async reparent(window: Window | WebviewWindow | string): Promise<void> {
-    return invoke('plugin:webview|set_webview_focus', {
+    return invoke('plugin:webview|reparent', {
       label: this.label,
       window: typeof window === 'string' ? window : window.label
     })

Някои файлове не бяха показани, защото твърде много файлове са промени