fix(opener-js): allow URL type (#2695)

* fix(opener-js): allow URL type

* bump opener rs in change file

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
This commit is contained in:
Shaun HamiltonandTony authored and GitHub committed 2025-05-14 17:58:54 +08:00
1 parent a6b854032d
commit 6c9e08dccb
2 files changed
+10 -1

No files matched your search

+4 -1
View File
@@ -38,7 +38,10 @@ import { invoke } from '@tauri-apps/api/core'
*
* @since 2.0.0
*/
export async function openUrl(url: string, openWith?: string): Promise<void> {
export async function openUrl(
url: string | URL,
openWith?: string
): Promise<void> {
await invoke('plugin:opener|open_url', {
url,
with: openWith