mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
parent
fd2538bd05
commit
94f0267d8e
@ -6,7 +6,7 @@
|
||||
|
||||
## Bug Fixes:
|
||||
|
||||
No changes to highlight.
|
||||
- Frontend code no longer crashes when there is a relative URL in an `<a>` element, by [@akx](https://github.com/akx) in [PR 4449](https://github.com/gradio-app/gradio/pull/4449).
|
||||
|
||||
## Other Changes:
|
||||
|
||||
|
@ -321,14 +321,14 @@
|
||||
}
|
||||
};
|
||||
|
||||
const is_external_url = (link: string | null) =>
|
||||
link && new URL(link, location.href).origin !== location.origin;
|
||||
|
||||
async function handle_mount() {
|
||||
await tick();
|
||||
|
||||
var a = target.getElementsByTagName("a");
|
||||
|
||||
const is_external_url = (link: string | null) =>
|
||||
link && new URL(link).origin !== location.origin;
|
||||
|
||||
for (var i = 0; i < a.length; i++) {
|
||||
const _target = a[i].getAttribute("target");
|
||||
const _link = a[i].getAttribute("href");
|
||||
|
Loading…
x
Reference in New Issue
Block a user