history now saves to Session storage

This commit is contained in:
Mathew committed 2019-07-08 14:47:43 +02:00
1 parent 311680d05d
commit e40393a63f
1 file changed
+2
+2
View File
@@ -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')