code: function get(name) {
          var value = (_.isFunction($cookies.get) ? $cookies.get(name) : $cookies[name]);
  
          if (!value && localStorage) {
  
              try {
                  value = localStorage.getItem(name);
              }
              catch (ex) {}
  
              if (value) {
                  set(name, value);
              }
          }
  
          return value;
      }
docs: First check cookie; if not present, however, check local storage
  @param name