diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js index 0545ff2..81633b8 100644 --- a/webssh/static/js/main.js +++ b/webssh/static/js/main.js @@ -662,6 +662,14 @@ jQuery(function($){ data._origin = event_origin; } + for (var datum in data) { + var value = data[datum]; + if (value){ + window.localStorage.setItem(datum, value); + } + } + restore_items(fields); + $.ajax({ url: url, type: 'post',