Pocket / extension-save-to-pocket

Save to Pocket is a browser extension that is used to save pages to a connected Pocket account
https://getpocket.com
MIT License
273 stars 48 forks source link

fix(context-menu): add log in to context menu and have it be account aware #258

Closed anthony-liddle closed 2 years ago

anthony-liddle commented 2 years ago

Goal

The Pocket browser context menu should display "log in" or "log out" depending on stored access_token

Todos:

Implementation Decisions

Added a function for the sole purpose of clearing all context menu items, and then adding them back with a check for the access_token.

Bonus addition that stops logging out all actions from app.js for production releases.