Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

displaying google sign in popup

Blue Mousef685ed5e39cf
diff --git a/src/components/GoogleAuth.tsx b/src/components/GoogleAuth.tsx
index 9a7a9a7e7..799face70 100644
--- a/src/components/GoogleAuth.tsx
+++ b/src/components/GoogleAuth.tsx
@@ -58,7 +58,9 @@ const GoogleAuth = () => {
const clickGoogleLoginButton = () => {
if (actualGoogleButton.current) {
// @ts-ignore
- actualGoogleButton.current.click()
+ const iframe = actualGoogleButton.current.querySelector('iframe')
+ // Emulating the click on an actial 'Sign in with Google' button
+ iframe.nextElementSibling.click()
}
}
@@ -83,7 +85,6 @@ const GoogleAuth = () => {
<div
className='hidden'
ref={actualGoogleButton}
- onClick={() => { }}
/>
</div>
)