code: function() {
              try {
                  return (typeof window.localStorage === 'undefined')? null : window.localStorage;
              } catch (e) {
                  logging.error("Error accessing localStorage: ", e);
                  return null;
              }
          }
docs: /*
  Return storage context