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>
pull/2698/head
Shaun Hamilton 3 weeks ago committed by GitHub
parent a6b854032d
commit 6c9e08dccb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,6 @@
---
"opener": patch
"opener-js": patch
---
Adjust `open_url` url type to allow `URL`

@ -38,7 +38,10 @@ import { invoke } from '@tauri-apps/api/core'
* *
* @since 2.0.0 * @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', { await invoke('plugin:opener|open_url', {
url, url,
with: openWith with: openWith

Loading…
Cancel
Save