We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6b8540 commit 6c9e08dCopy full SHA for 6c9e08d
.changes/opener-url-type.md
@@ -0,0 +1,6 @@
1
+---
2
+"opener": patch
3
+"opener-js": patch
4
5
+
6
+Adjust `open_url` url type to allow `URL`
plugins/opener/guest-js/index.ts
@@ -38,7 +38,10 @@ import { invoke } from '@tauri-apps/api/core'
38
*
39
* @since 2.0.0
40
*/
41
-export async function openUrl(url: string, openWith?: string): Promise<void> {
+export async function openUrl(
42
+ url: string | URL,
43
+ openWith?: string
44
+): Promise<void> {
45
await invoke('plugin:opener|open_url', {
46
url,
47
with: openWith
0 commit comments