Skip to content

Stop fetching if the user hasn't logged in #16

Description

@uier

The script loads and runs on entering hackmd.io website.

Currently, no matter the user is logged in or not, the fetches run and try to get users' notes data, which needs authentication, to provide the service.
And if the user has NOT logged in, the fetches fail and 3 retries begin, and of course the retries will all fail.

Would be great if we stop at the first fetch call when we recognize that the user has not logged in.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions