omnibear
omnibear copied to clipboard
clear localStorage syndicateTo on logout.
Fixes#84
Confirmed fix by
- Omnibear log into https://dougbeal.com with Bridgy Publish plugin activbe
- Omnibear log out
- disable Bridgy Publish
- Omnibear log in
- Successful bridgy github syndication
(Originally published at: https://crw.moe/t/1ge)
This should work now, but getting an error:
Context https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map page.js:5013 (anonymous function)
_browser2.default.runtime.sendMessage({ action: ‘focus-window’, payload: { pageEntry: pageEntry, selectedEntry: selectedEntry } });
Several localStorage fail to remove
(Originally published at: https://crw.moe/t/1gw)
These localStorage items don’t get cleared
‘authEndpoint’,* ‘tokenEndpoint’,*
‘syndicateTo’,*
(Originally published at: https://crw.moe/t/1gx)
Thanks for taking a look at this! Your change should work. I'll see if I can reproduce that error when I get the time.
I just noticed the date on this 😖. Sorry for the delay!
Also just chiming in since I saw the notifications, and I may have mentioned this elsewhere, but you're not really meant to use local storage with extensions.
There is an api for storing data with extensions: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage