Skip to content

Commit

Permalink
fix(cli): use correct arg in _blanks links polyfill (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Mar 17, 2021
1 parent b670ec5 commit 4ee044a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-blank-hyperlinks-polyfiil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-cli": patch
---

Fixes `<a target="_blank">` polyfill.
2 changes: 1 addition & 1 deletion cli/core/src/templates/tauri.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if (!String.prototype.startsWith) {
__tauriModule: "Shell",
message: {
cmd: "open",
uri: target.href,
path: target.href,
},
});
e.preventDefault();
Expand Down
4 changes: 2 additions & 2 deletions examples/api/src/App.svelte
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -106,4 +106,4 @@
</p>
{responses}
</div>
</main>
</main>

0 comments on commit 4ee044a

Please sign in to comment.