const EnablePreviewFeaturesKey = 'enable-preview-features'

/**
 * Enables the application to opt-in for preview features based on runtime
 * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment
 * variable, which is checked for non-development environments.
 */
export function enablePreviewFeatures(): boolean {
  if (__DEV__) {
    return true
  }

  if (process.env.GITHUB_DESKTOP_PREVIEW_FEATURES) {
    return true
  }

  const enableFeatures = localStorage.getItem(EnablePreviewFeaturesKey)
  const enableFeaturesValue = enableFeatures && parseInt(enableFeatures, 10)
  if (
    enableFeaturesValue &&
    !isNaN(enableFeaturesValue) &&
    enableFeaturesValue > 0
  ) {
    return true
  }

  return false
}

/**
 * Enables the application to opt-in for preview features based on runtime
 * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment
 * variable, which is checked for non-development environments.
 */
export function enablePreviewFeatures(): boolean {
  if (__DEV__) {
    return true
  }

  if (process.env.GITHUB_DESKTOP_PREVIEW_FEATURES) {
    return true
  }

  return false
}

--- 
+++ 
@@ -1,3 +1,5 @@
+const EnablePreviewFeaturesKey = 'enable-preview-features'
+
 /**
  * Enables the application to opt-in for preview features based on runtime
  * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment
@@ -12,5 +14,15 @@
     return true
   }
 
+  const enableFeatures = localStorage.getItem(EnablePreviewFeaturesKey)
+  const enableFeaturesValue = enableFeatures && parseInt(enableFeatures, 10)
+  if (
+    enableFeaturesValue &&
+    !isNaN(enableFeaturesValue) &&
+    enableFeaturesValue > 0
+  ) {
+    return true
+  }
+
   return false
 }
Enable preview features from localStorage too
