fix(opener-js): allow URL type

pull/2695/head
Shaun Hamilton 2 months ago
parent a6b854032d
commit c1ee79a0ad
No known key found for this signature in database
GPG Key ID: 7FC38309C6667D34

@ -0,0 +1,5 @@
---
"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
*/
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

Loading…
Cancel
Save