@@ -0,0 +1,5 @@
+---
+"tauri-cli": patch
+
+Fixes `<a target="_blank">` polyfill.
@@ -171,7 +171,7 @@ if (!String.prototype.startsWith) {
__tauriModule: "Shell",
message: {
cmd: "open",
- uri: target.href,
+ path: target.href,
},
});
e.preventDefault();
@@ -1,6 +1,6 @@
<script>
import { onMount } from "svelte";
- import { open } from "@tauri-apps/api/window";
+ import { open } from "@tauri-apps/api/shell";
import Cli from "./components/Cli.svelte";
import Communication from "./components/Communication.svelte";
@@ -106,4 +106,4 @@
</p>
{responses}
</div>
-</main>
+</main>