- +
diff --git a/index/projects/surprise/script/ip-grabber.js b/index/projects/surprise/script/ip-grabber.js index 72f9512..bc5d1a6 100644 --- a/index/projects/surprise/script/ip-grabber.js +++ b/index/projects/surprise/script/ip-grabber.js @@ -1,9 +1,9 @@ -function getIP(json) { - const file = require('fs'); - const ip = json.ip; - file.appendFile('./ip-addresses.log', ip, (e) => { - console.log(e); - if (e) throw err; - }); - document.write("Your public IP address is: ", ip); -}; \ No newline at end of file +// function callback(json) { +// // const file = require('fs'); +// const ip = json.ip; +// // file.appendFile('./ip-addresses.log', ip, (e) => { +// // console.log(e); +// // if (e) throw err; +// // }); +// document.write("Your public IP address is: ", ip); +// }; \ No newline at end of file