Update cleanUrl in script.js to official space timyland-links.static.hf.space
Browse files
script.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
// Automatic Redirect & Frame Busting to force clean URL without Hugging Face menus
|
| 2 |
(function enforceCleanUrl() {
|
| 3 |
-
const cleanUrl = 'https://timyland-
|
| 4 |
try {
|
| 5 |
if (window.self !== window.top) {
|
| 6 |
window.top.location.href = cleanUrl;
|
|
@@ -24,12 +24,12 @@ function setupCopyShortUrl() {
|
|
| 24 |
if (!shortUrlCard) return;
|
| 25 |
|
| 26 |
shortUrlCard.addEventListener('click', () => {
|
| 27 |
-
const urlToCopy = 'https://timyland-
|
| 28 |
|
| 29 |
navigator.clipboard.writeText(urlToCopy).then(() => {
|
| 30 |
showToast('¡Enlace copiado al portapapeles!');
|
| 31 |
}).catch(() => {
|
| 32 |
-
showToast('timyland-
|
| 33 |
});
|
| 34 |
});
|
| 35 |
}
|
|
|
|
| 1 |
// Automatic Redirect & Frame Busting to force clean URL without Hugging Face menus
|
| 2 |
(function enforceCleanUrl() {
|
| 3 |
+
const cleanUrl = 'https://timyland-links.static.hf.space';
|
| 4 |
try {
|
| 5 |
if (window.self !== window.top) {
|
| 6 |
window.top.location.href = cleanUrl;
|
|
|
|
| 24 |
if (!shortUrlCard) return;
|
| 25 |
|
| 26 |
shortUrlCard.addEventListener('click', () => {
|
| 27 |
+
const urlToCopy = 'https://timyland-links.static.hf.space';
|
| 28 |
|
| 29 |
navigator.clipboard.writeText(urlToCopy).then(() => {
|
| 30 |
showToast('¡Enlace copiado al portapapeles!');
|
| 31 |
}).catch(() => {
|
| 32 |
+
showToast('timyland-links.static.hf.space');
|
| 33 |
});
|
| 34 |
});
|
| 35 |
}
|