aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getUsers.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-09-22 15:39:32 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-09-22 15:39:32 +0200
commitb88446887a2a238bdf50acf56602c37ffdce83f9 (patch)
tree66c04a0dfb5e3af2ae0deff47ebdb4005adcd934 /public/javascripts/getUsers.js
parentb6206ce765b4330ae6b17b1724f60115fc3807d8 (diff)
Fixed iOS
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))
}