js/main.js
// Store terminal variables in storage using localForage.
Store terminal variables in storage using localForage.
Store terminal variables in storage using localForage .
function savevars() {
        if (!Object.keys(parser.scope).length) {
          return preans + 'There are currently no variables defined in this terminal.' + sufans;
        }
        localStorage.setItem(termName, JSON.stringify(parser.scope));
        return preans + 'Terminal variables have been saved.' + sufans;
      }
function savevars ( ) { if ( ! Object . keys ( parser . scope ) . length ) { return preans + 'There are currently no variables defined in this terminal.' + sufans ; } localStorage . setItem ( termName , JSON . stringify ( parser . scope ) ) ; return preans + 'Terminal variables have been saved.' + sufans ; }
Store terminal variables in storage using localForage.
Store terminal variables in storage using localForage .