fix(cli): use correct arg in _blanks links polyfill (#1362)

This commit is contained in:
Amr Bashir 2021-03-17 02:47:56 +02:00 committed by GitHub
parent b670ec55f2
commit 4ee044a3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-cli": patch
---
Fixes `<a target="_blank">` polyfill.

View File

@ -171,7 +171,7 @@ if (!String.prototype.startsWith) {
__tauriModule: "Shell",
message: {
cmd: "open",
uri: target.href,
path: target.href,
},
});
e.preventDefault();

View File

@ -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>