Closed anthony-liddle closed 2 years ago
The Pocket browser context menu should display "log in" or "log out" depending on stored access_token
access_token
npm run build
npm run release
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.
app.js
Goal
The Pocket browser context menu should display "log in" or "log out" depending on stored
access_token
Todos:
npm run build
and notnpm run release
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.