aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getUsers.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-09-07 18:23:27 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-09-07 18:23:27 +0200
commit89f7dafc89dc4705f6c8f1787e157b67f92e77ae (patch)
tree1a040f26c086a499e01c4b5cf3e669766e60c5c4 /public/javascripts/getUsers.js
parentc3f2d2328edf56e67009b4f008815242a0f5e04a (diff)
IE fix
Diffstat (limited to 'public/javascripts/getUsers.js')
-rw-r--r--public/javascripts/getUsers.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/public/javascripts/getUsers.js b/public/javascripts/getUsers.js
index ff771dd..bd3d176 100644
--- a/public/javascripts/getUsers.js
+++ b/public/javascripts/getUsers.js
@@ -1,8 +1,7 @@
-const Promise = require('bluebird')
-// const cheerio = require('cheerio')
-const request = Promise.promisify(require('request'))
+var Promise = require('bluebird')
+var request = Promise.promisify(require('request'))
module.exports = function () {
- return request(`http://${window.location.host}/getUserIndex`)
+ return request('http://' + window.location.host + '/getUserIndex')
.then(function (data) { return JSON.parse(data.body) })
}