minispace commited on
Commit
bdb0faa
·
1 Parent(s): f5e73f7

Update cleanUrl in script.js to official space timyland-links.static.hf.space

Browse files
Files changed (1) hide show
  1. script.js +3 -3
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-pi.static.hf.space';
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-pi.static.hf.space';
28
 
29
  navigator.clipboard.writeText(urlToCopy).then(() => {
30
  showToast('¡Enlace copiado al portapapeles!');
31
  }).catch(() => {
32
- showToast('timyland-pi.static.hf.space');
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
  }