aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getUsers.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/getUsers.js')
-rw-r--r--public/javascripts/getUsers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/getUsers.js b/public/javascripts/getUsers.js
index bd3d176..780ae49 100644
--- a/public/javascripts/getUsers.js
+++ b/public/javascripts/getUsers.js
@@ -2,6 +2,6 @@ var Promise = require('bluebird')
var request = Promise.promisify(require('request'))
module.exports = function () {
- return request('http://' + window.location.host + '/getUserIndex')
- .then(function (data) { return JSON.parse(data.body) })
+ return request(`http://${window.location.host}/getUserIndex`)
+ .then(data => JSON.parse(data.body))
}