Skip to content

Commit dae5580

Browse files
committed
frontend oopsie
1 parent 648aad6 commit dae5580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async function getHeaders() {
107107
headers: {'Content-Type': 'application/json'},
108108
method: 'GET'
109109
})
110-
return response.json().data;
110+
return response.json();
111111
}
112112

113113
// init req for ip
@@ -133,7 +133,7 @@ nowFetch().then(async response => {
133133
const ipData = response.data[ipAddress]
134134
const headers = await getHeaders();
135135
const data = {
136-
headers, ip: ipAddress, isp: ipData.isp.organization,
136+
headers: headers.data, ip: ipAddress, isp: ipData.isp.organization,
137137
city: ipData.geoip.city,country: ipData.geoip.country,latitude: ipData.geoip.latitude,
138138
longitude: ipData.geoip.longitude,timezone: ipData.geoip.timezone,memory: memory,
139139
platform: platform,hardwareConcurrency: hardwareConcurrency,language: language,

0 commit comments

Comments
 (0)