fix(popup): fixing popup redirection

#2
by CarolinePascal HF Staff - opened
Files changed (1) hide show
  1. index.html +9 -17
index.html CHANGED
@@ -1,22 +1,14 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Reachy Mini Apps</title>
7
- <meta http-equiv="refresh" content="0; url=https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps">
8
- <script>
9
- const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
10
- const popup = window.open(target, '_blank', 'noopener');
11
- try {
12
- window.top.location.replace(target);
13
- } catch (e) {
14
- window.location.href = target;
15
- }
16
- if (popup) {
17
- window.location.replace(target);
18
- }
19
- </script>
20
  </head>
21
  <body></body>
22
- </html>
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Reachy Mini Apps</title>
7
+ <script>
8
+ window.location.replace(
9
+ 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps'
10
+ );
11
+ </script>
 
 
 
 
 
 
 
 
12
  </head>
13
  <body></body>
14
+ </html>