summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-08-13 13:23:56 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-08-13 13:23:56 -0400
commit8fc4456213c5ee16863b7f1bcb20e35a19469a1d (patch)
treefa33fc50e8380e3a08b49ea11d1450b5f1bb9d15 /web/react/utils/client.jsx
parentca919538cc402ed90ce42ffc3ef98994bb1081f4 (diff)
downloadchat-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/client.jsx')
-rw-r--r--web/react/utils/client.jsx21
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;
-};