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
1 changed files with 15 additions and 15 deletions

View File

@ -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 (