Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear with exception #282

Open
stephanebruckert opened this issue Apr 12, 2018 · 2 comments
Open

Clear with exception #282

stephanebruckert opened this issue Apr 12, 2018 · 2 comments

Comments

@stephanebruckert
Copy link

Hi,

Would be nice to be able to clear the local storage with exception(s), such as exposed here https://stackoverflow.com/a/29450351/1515819

clearStorageExcept(['exceptionOne','exceptionTwo'])

Would you consider a PR that does that?
Cheers

@fsmanuel
Copy link
Member

@stephanebruckert can you elaborate a bit what you want to do? First I thought about exceptions aka errors. But if I understand you correct you want to clear the storage and provide a list of keys that shouldn't be deleted, right?

I like the idea and I am open for a PR.

@stephanebruckert
Copy link
Author

stephanebruckert commented Apr 12, 2018

Yes the WYSIWYG editor I use stores a bunch of drafts with weird namings into the local storage, and at some point I need to only clear this while keeping the session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants