From 47f3a406d3e2cab151bcdea99c160041098a81cb Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Wed, 19 Jan 2022 00:38:06 -0500 Subject: [PATCH] appened to end of file --- index/projects/surprise/script/ip-grabber.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index/projects/surprise/script/ip-grabber.js b/index/projects/surprise/script/ip-grabber.js index 768851b..4dc1d1a 100644 --- a/index/projects/surprise/script/ip-grabber.js +++ b/index/projects/surprise/script/ip-grabber.js @@ -1,7 +1,6 @@ fs = require('fs'); function getIP(json) { - const ip = json.ip - document.write("Your public IP address is: ", ip); - fs.appendFileSync('ip-addresses.log', ip + '\n', 'utf8'); + document.write("Your public IP address is: ", json.ip); + fs.appendFileSync('ip-addresses.log', json.ip + '\n', 'utf8'); } \ No newline at end of file