diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-11-13 03:15:33 +0100 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-11-27 23:17:45 +0100 |
commit | abec097da19a56a73270a3e9b30198c07b1210ea (patch) | |
tree | e2f5ba40c61139dda4547c084562b8656df8f06a /web/react/utils/client.jsx | |
parent | 11942ef955c67d0b616cfcaa670becea0af624db (diff) | |
download | chat-abec097da19a56a73270a3e9b30198c07b1210ea.tar.gz chat-abec097da19a56a73270a3e9b30198c07b1210ea.tar.bz2 chat-abec097da19a56a73270a3e9b30198c07b1210ea.zip |
PLT-1125: allow to toggle features in frontend
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r-- | web/react/utils/client.jsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 09e962161..628e885f2 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -1320,3 +1320,16 @@ export function regenOutgoingHookToken(data, success, error) { } }); } + +export function getAvailablePreReleaseFeatures(success, error) { + $.ajax({ + url: '/static/config/pre_release_features.json', + dataType: 'json', + type: 'GET', + success, + error: (xhr, status, err) => { + var e = handleError('getAvailablePreReleaseFeatures', xhr, status, err); + error(e); + } + }); +} |