From e14a3bbe218c2748316666d569c3c389e14e3f57 Mon Sep 17 00:00:00 2001 From: TheRed Date: Tue, 15 Feb 2022 22:47:18 +0200 Subject: [PATCH] My idiot self left in an old part of the code that wasn\'t working correctly --- components/privacy.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/components/privacy.js b/components/privacy.js index 9e7f6c7..cbfef9c 100755 --- a/components/privacy.js +++ b/components/privacy.js @@ -1,22 +1,22 @@ import styles from '../styles/Privacy.module.css' -(async () => { -let ipreq = await fetch('/api/ip', { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - msg: 'get_ip' - }) -}) +// (async () => { +// let ipreq = await fetch('/api/ip', { +// method: 'POST', +// headers: { +// 'Content-Type': 'application/json' +// }, +// body: JSON.stringify({ +// msg: 'get_ip' +// }) +// }) -let ip; -if (ipreq.ok) { - ipreq.text().then(i => {ip = i}); -}; +// let ip; +// if (ipreq.ok) { +// ipreq.text().then(i => {ip = i}); +// }; -})(); +// })(); export default function Privacy() { return (