hideTitleBar prop on open_full_window

This commit is contained in:
FTCHD
2026-02-03 15:48:17 +07:00
parent d9404ee374
commit dc46bbc1ef
2 changed files with 14 additions and 6 deletions
+3 -1
View File
@@ -5,12 +5,14 @@ import { platform } from '@tauri-apps/plugin-os'
export async function openFullWindow({
name,
url,
hideTitleBar = false,
}: {
name: string
url: string
hideTitleBar?: boolean
}) {
console.log('[openFullWindow] ', name, url)
await invoke('open_full_window', { name, url })
await invoke('open_full_window', { name, url, hideTitleBar })
return WebviewWindow.getByLabel(name)
}