mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 07:55:34 +03:00
Fix Webview.reparent
pointing to wrong Rust API (#10277)
This commit is contained in:
parent
6d965e9fbf
commit
3c17fb64fd
5
.changes/api-reparent-focus.md
Normal file
5
.changes/api-reparent-focus.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@tauri-apps/api': 'patch:bug'
|
||||
---
|
||||
|
||||
Fix `Webview.reparent` pointing to `set_webview_focus` instead of `reparent` Rust API
|
File diff suppressed because one or more lines are too long
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user