Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Function Doesn't work In Mobile Browser #221

Open
Daniel921 opened this issue Mar 16, 2022 · 0 comments
Open

Hide Function Doesn't work In Mobile Browser #221

Daniel921 opened this issue Mar 16, 2022 · 0 comments

Comments

@Daniel921
Copy link

Daniel921 commented Mar 16, 2022

spinner.hide() tests work on PC, but it doesn't work on mobile browser

Angular Version:13.2.4
ngx-spinner Version: 13.1.1

intercept(req: HttpRequest<any>, next: HttpHandler) {
    this.spinner.show();
    return next.handle(req).pipe(
      tap((event: HttpEvent<any>) => {
        if (event instanceof HttpResponse && event.status >= 200 && event.status < 300 && req.url.includes('seat')) {
          this.spinner.hide();   // doesn't work
        }
      })
    );
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant