Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
hide banner
Browse files
src/routes/+layout.svelte
CHANGED
@@ -28,7 +28,8 @@
|
|
28 |
if (window.location.host === "enzostvs-lora-studio.hf.space") {
|
29 |
window.location.href = "https://lorastudio.co";
|
30 |
}
|
31 |
-
|
|
|
32 |
init("enzostvs/lora-studio")
|
33 |
}
|
34 |
}
|
|
|
28 |
if (window.location.host === "enzostvs-lora-studio.hf.space") {
|
29 |
window.location.href = "https://lorastudio.co";
|
30 |
}
|
31 |
+
const hasAncestorOrigin = Object.values(window.location.ancestorOrigins).some((origin) => origin.includes("huggingface.co"));
|
32 |
+
if (!hasAncestorOrigin) {
|
33 |
init("enzostvs/lora-studio")
|
34 |
}
|
35 |
}
|