My idiot self left in an old part of the code that wasn\'t working correctly
This commit is contained in:
parent
a24b8bde21
commit
e14a3bbe21
1 changed files with 15 additions and 15 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue