summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/utils')
-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;
-};