uier / hackbar

A browser extension for using command palette (kbar) in HackMD.

Home Page:https://chrome.google.com/webstore/detail/hackbar/algbkiepdpcjnhgagoddfcicdeaiimba

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stop fetching if the user hasn't logged in

uier opened this issue · comments

commented

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.