diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/README.md | 1 | ||||
-rw-r--r-- | docs/secret-preferences.md | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md index c6e7dae6c..3c9bc0b4a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,3 +18,4 @@ To learn how to develop MetaMask-compatible applications, visit our [Developer D - [How to manage notices that appear when the app starts up](./notices.md) - [How to port MetaMask to a new platform](./porting_to_new_environment.md) - [How to generate a visualization of this repository's development](./development-visualization.md) +- [How to add a feature behind a secret feature flag](./secret-preferences.md) diff --git a/docs/secret-preferences.md b/docs/secret-preferences.md new file mode 100644 index 000000000..f9d01a503 --- /dev/null +++ b/docs/secret-preferences.md @@ -0,0 +1,10 @@ +# Secret Preferences + +Sometimes we want to test a feature in the wild that may not be ready for public consumption. + +One example is our "sync with mobile" feature, which didn't make sense to roll out before the mobile version was live. + +To enable features like this, first open the background console, and then you can use the global method `global.setPreference(key, value)`. + +For example, if the feature flag was a booelan was called `mobileSync`, you might type `setPreference('mobileSync', true)`. + |