diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-08-13 13:23:56 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-08-13 13:23:56 -0400 |
commit | 8fc4456213c5ee16863b7f1bcb20e35a19469a1d (patch) | |
tree | fa33fc50e8380e3a08b49ea11d1450b5f1bb9d15 /web/react/utils | |
parent | ca919538cc402ed90ce42ffc3ef98994bb1081f4 (diff) | |
download | chat-8fc4456213c5ee16863b7f1bcb20e35a19469a1d.tar.gz chat-8fc4456213c5ee16863b7f1bcb20e35a19469a1d.tar.bz2 chat-8fc4456213c5ee16863b7f1bcb20e35a19469a1d.zip |
Removed isEmailEnabledSynchronous and switched the email disabled warnings to use ConfigStore
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/client.jsx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 250e3edbd..8178ab01a 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -864,24 +864,3 @@ function getConfig(success, error) { }); }; module.exports.getConfig = getConfig; - -module.exports.isEmailEnabledSynchronous = function() { - var enabled = false; - - $.ajax({ - async: false, - url: '/api/v1/config/get/bypass_email', - dataType: 'json', - type: 'GET', - success: function(value) { - enabled = !value; - }, - error: function(xhr, status, err) { - if (status !== '200') { - handleError('isEmailEnabled', xhr, status, err); - } - } - }); - - return enabled; -}; |