js/main.js
// Load terminal variables from localStorage.
Load terminal variables from localStorage.
Load terminal variables from localStorage .
function loadvars() {
        var loadedvars = JSON.parse(localStorage.getItem(termName));
        if (loadedvars === null) {
          return preans + 'There are no stored variables in this terminal.' + sufans;
        }
        for(var key in loadedvars) {
          if (loadedvars.hasOwnProperty(key)) {
            parser.set(key, loadedvars[key]);
          }
        }
        return preans + 'Terminal variables have been loaded.' + sufans;
      }
function loadvars ( ) { var loadedvars = JSON . parse ( localStorage . getItem ( termName ) ) ; if ( loadedvars === null ) { return preans + 'There are no stored variables in this terminal.' + sufans ; } for ( var key in loadedvars ) { if ( loadedvars . hasOwnProperty ( key ) ) { parser . set ( key , loadedvars [ key ] ) ; } } return preans + 'Terminal variables have been loaded.' + sufans ; }
Load terminal variables from localStorage.
Load terminal variables from localStorage .