Skip to content

Commit 4ee044a

Browse files
authored
fix(cli): use correct arg in _blanks links polyfill (#1362)
1 parent b670ec5 commit 4ee044a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-cli": patch
3+
---
4+
5+
Fixes `<a target="_blank">` polyfill.

cli/core/src/templates/tauri.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ if (!String.prototype.startsWith) {
171171
__tauriModule: "Shell",
172172
message: {
173173
cmd: "open",
174-
uri: target.href,
174+
path: target.href,
175175
},
176176
});
177177
e.preventDefault();

examples/api/src/App.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
22
import { onMount } from "svelte";
3-
import { open } from "@tauri-apps/api/window";
3+
import { open } from "@tauri-apps/api/shell";
44
55
import Cli from "./components/Cli.svelte";
66
import Communication from "./components/Communication.svelte";
@@ -106,4 +106,4 @@
106106
</p>
107107
{responses}
108108
</div>
109-
</main>
109+
</main>

0 commit comments

Comments
 (0)