mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-01 15:36:14 +03:00
fix(cli): use correct arg in _blanks
links polyfill (#1362)
This commit is contained in:
parent
b670ec55f2
commit
4ee044a3e6
5
.changes/fix-blank-hyperlinks-polyfiil.md
Normal file
5
.changes/fix-blank-hyperlinks-polyfiil.md
Normal file
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user