-
Notifications
You must be signed in to change notification settings - Fork 436
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
Persistent commands history #206
Conversation
+1 |
|
👍 |
2 similar comments
👍 |
👍 |
hey @charliesome, what's up? |
this.previousCommands = []; | ||
this.previousCommandOffset = 0; | ||
|
||
var previousCommands = JSON.parse(localStorage.getItem("previousCommands")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please 'namespace' the local storage key with a Better Errors related prefix so it has less of a chance of clashing with other local storage keys.
Other than the comments I've left above, this looks good and I'm happy to merge this when those comments are resolved. |
@charliesome, done |
😞 |
👍 Looks good to me! |
Very annoying that history is lost after reloading page, therefore I think better way is store commands history in localStorage.