diff --git a/src/app/shared/services/auth.service.ts b/src/app/shared/services/auth.service.ts index dea39178..3fa5397f 100644 --- a/src/app/shared/services/auth.service.ts +++ b/src/app/shared/services/auth.service.ts @@ -121,15 +121,16 @@ export class AuthService { } login() { - - setTimeout(() => { + // Need to increase timeout to 1500 as for slower network it gives an error + // Cannot read property 'querySelector' of null + setTimeout(() => { const button = document .querySelector('#lfx-header') .shadowRoot.querySelector('.lfx-header.is-login-link') as HTMLElement; if (button) { button.click(); } - }, 500) + }, 1500) } logout() { diff --git a/src/index.html b/src/index.html index a983424c..0b602545 100644 --- a/src/index.html +++ b/src/index.html @@ -14,7 +14,7 @@
-