Re:Show HN: Markdown New Tab – A new tab replacement to jot ...
by weaksauce on Wednesday July 11, 2018 @02:47PM
(#17509286)
There is a very real problem with this extension that will upset people that use it. It’s using the window.localStorage object that will possibly be cleared out when the browser history gets erased. It asks for the storage permission in the manifest but does nothing with it. To the op, use chrome.localstorage() for any read and write operations(edit note that this is async)... that protects against clearing the history. If you plan on storing images you can just request the unlimitedStorage permission to get a full indexdb instance with the same simple api that is simple to use. (not sure if this perm is valid on chrome)
[ Parent
| on HN ]
Re:Show HN: Markdown New Tab – A new tab replacement to jot ...
by plibither8 on Wednesday July 11, 2018 @09:22PM
(#17511544)
I didn't think about this! Thanks a lot for bringing this to my notice, I'll lookup a workaround and a safe transition to probably chrome.localStorage.