My idiot self left in an old part of the code that wasn\'t working correctly

This commit is contained in:
Red Duck 2022-02-15 22:47:18 +02:00
parent a24b8bde21
commit e14a3bbe21

View file

@ -1,22 +1,22 @@
import styles from '../styles/Privacy.module.css' import styles from '../styles/Privacy.module.css'
(async () => { // (async () => {
let ipreq = await fetch('/api/ip', { // let ipreq = await fetch('/api/ip', {
method: 'POST', // method: 'POST',
headers: { // headers: {
'Content-Type': 'application/json' // 'Content-Type': 'application/json'
}, // },
body: JSON.stringify({ // body: JSON.stringify({
msg: 'get_ip' // msg: 'get_ip'
}) // })
}) // })
let ip; // let ip;
if (ipreq.ok) { // if (ipreq.ok) {
ipreq.text().then(i => {ip = i}); // ipreq.text().then(i => {ip = i});
}; // };
})(); // })();
export default function Privacy() { export default function Privacy() {
return ( return (