Refactorization

This commit is contained in:
vjrj 2017-12-06 13:28:15 +01:00
parent df96b6e51e
commit b40309e80b
4 changed files with 173 additions and 120 deletions

View file

@ -20,7 +20,7 @@ Meteor.methods({
if (isPrivateIP(clientIP)) {
clientIP = '80.58.61.250' // Some Spain IP address
}
console.log(`Geolocating ${clientIP}`);
// console.log(`Geolocating ${clientIP}`);
// https://developers.google.com/web/fundamentals/primers/promises
var promise = new Promise(function(resolve, reject) {