thuguerre / WebSiteQuickAddingForTodoist

This unofficial Todoist browser extension allows its user to add its current web site's URL as a new Task in his Todoist Inbox, just by clicking on a single button.
MIT License
2 stars 0 forks source link

Do not call API at each extension launch ? #53

Open thuguerre opened 4 years ago

thuguerre commented 4 years ago

Since PR #51 (from Issue #43), we make a call to the API at each extension launch. However, this call is not required each time, as if we have a locally stored Access Token, configuration got from this initial call will not be used. We so have inserted a call which can impact launching performance and error.

Should we call the API only if we do not have a stored access token ?

However, if we do not do that, we could make #52 not possible.