diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-09-22 15:39:32 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-09-22 15:39:32 +0200 |
commit | b88446887a2a238bdf50acf56602c37ffdce83f9 (patch) | |
tree | 66c04a0dfb5e3af2ae0deff47ebdb4005adcd934 /public/javascripts/getUsers.js | |
parent | b6206ce765b4330ae6b17b1724f60115fc3807d8 (diff) |
Fixed iOS
Diffstat (limited to 'public/javascripts/getUsers.js')
-rw-r--r-- | public/javascripts/getUsers.js | 4 |
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)) } |