appened to end of file

This commit is contained in:
array-in-a-matrix 2022-01-19 00:38:06 -05:00
parent 675d3bcd0d
commit 47f3a406d3

View file

@ -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');
}