export var getStorageString = function getStorageString(key) {
  var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  try {
    if (key && window) {
      var storageValue = window.localStorage.getItem(key);
      if (storageValue) {
        return storageValue;
      }
      return fallback;
    }
  } catch (error) {
    return fallback;
  }
};
export var setStorageString = function setStorageString(key, value) {
  try {
    if (key && window) {
      window.localStorage.setItem(key, value);
      return true;
    }
  } catch (error) {}
  return false;
};