mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
changes (#1577)
This commit is contained in:
parent
d0b521510d
commit
4d74206748
@ -17,7 +17,10 @@
|
||||
export let root: string;
|
||||
|
||||
if (root === "") {
|
||||
root = window.location.href;
|
||||
root = location.protocol + "//" + location.host + location.pathname;
|
||||
}
|
||||
if (!root.endsWith("/")) {
|
||||
root += "/";
|
||||
}
|
||||
|
||||
let just_copied = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user