вернули заголовки о юзерагент

This commit is contained in:
Nastya 2024-03-28 15:31:16 +03:00
parent a0dd7f0891
commit bbd6a3b817
2 changed files with 9 additions and 9 deletions

@ -27,10 +27,10 @@ export const publicationMakeRequest = ({ url, body }: any) => {
headers: { headers: {
"X-Sessionkey": SESSIONS, "X-Sessionkey": SESSIONS,
"Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
// "DeviceType" : DeviceType, "DeviceType" : DeviceType,
// "Device" : Device, "Device" : Device,
// "OS": OSDevice, "OS": OSDevice,
// "Browser" : userAgent "Browser" : userAgent
}, },
method: "POST", method: "POST",
}); });
@ -49,10 +49,10 @@ export async function getData(quizId: string): Promise<{
headers: { headers: {
"X-Sessionkey": SESSIONS, "X-Sessionkey": SESSIONS,
"Content-Type": "application/json", "Content-Type": "application/json",
// "DeviceType" : DeviceType, "DeviceType" : DeviceType,
// "Device" : Device, "Device" : Device,
// "OS": OSDevice, "OS": OSDevice,
// "Browser" : userAgent "Browser" : userAgent
}, },
data: { data: {
quiz_id: quizId, quiz_id: quizId,

@ -1,6 +1,6 @@
{ {
"name": "@frontend/squzanswerer", "name": "@frontend/squzanswerer",
"version": "1.0.6", "version": "1.0.7",
"type": "module", "type": "module",
"main": "./dist-package/index.js", "main": "./dist-package/index.js",
"module": "./dist-package/index.js", "module": "./dist-package/index.js",