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