Reubencf commited on
Commit
652e45a
·
1 Parent(s): e9f2778

fixing login issue

Browse files
Files changed (1) hide show
  1. components/home/HomePage.tsx +1 -10
components/home/HomePage.tsx CHANGED
@@ -179,15 +179,6 @@ export default function HomePage() {
179
 
180
  const destination = `${loginUrl}&prompt=consent`;
181
 
182
- // Space embeds can block same-frame navigation, so prefer escaping the iframe shell.
183
- if (isHuggingFaceSpace) {
184
- const topNavigation = window.open(destination, '_top');
185
- if (!topNavigation) {
186
- window.open(destination, '_blank', 'noopener,noreferrer');
187
- }
188
- return;
189
- }
190
-
191
  window.location.assign(destination);
192
  } catch (error) {
193
  console.error('Sign in error:', error);
@@ -301,7 +292,7 @@ export default function HomePage() {
301
  ) : (
302
  <button
303
  onClick={handleSignIn}
304
- className="pointer-events-auto flex items-center gap-2 text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-50 transition-all text-sm font-medium"
305
  >
306
  <LogIn className="w-4 h-4" />
307
  <span>Log in with Hugging Face</span>
 
179
 
180
  const destination = `${loginUrl}&prompt=consent`;
181
 
 
 
 
 
 
 
 
 
 
182
  window.location.assign(destination);
183
  } catch (error) {
184
  console.error('Sign in error:', error);
 
292
  ) : (
293
  <button
294
  onClick={handleSignIn}
295
+ className="pointer-events-auto flex items-center gap-2 text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-50 transition-all text-sm font-medium cursor-pointer"
296
  >
297
  <LogIn className="w-4 h-4" />
298
  <span>Log in with Hugging Face</span>