history now saves to Session storage
This commit is contained in:
1 parent
311680d05d
commit
e40393a63f
1 file changed
+2
@@ -626,6 +626,7 @@ class Con {
|
||||
push(com) {
|
||||
this.commands.splice(1, 0, com)
|
||||
this.counter = 0
|
||||
Storage.Session.set('history', this.commands)
|
||||
return this
|
||||
},
|
||||
|
||||
@@ -1108,6 +1109,7 @@ class Con {
|
||||
this.updateInputWidth();
|
||||
|
||||
this.settings = Storage.Local.get('settings') || {}
|
||||
this.history.commands = Storage.Session.get('history') || [""]
|
||||
|
||||
this.log("Console ready", 'ok')
|
||||
|
||||
|
||||
Reference in new issue
Block a user