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'
|
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 (
|
||||||
|
|
Loading…
Reference in a new issue