Поправлен html
This commit is contained in:
parent
a886ae094d
commit
80d446443c
|
|
@ -313,7 +313,11 @@
|
|||
|
||||
async function showQRModal(recordId) {
|
||||
try {
|
||||
const response = await fetch(`/get_qr_code/${recordId}`);
|
||||
const response = await fetch(`/get_qr_code/${recordId}`, {
|
||||
headers: {
|
||||
'X-TG-Init-Data': tg.initData
|
||||
}
|
||||
});
|
||||
const data = await response.json();
|
||||
|
||||
if (data.qr_code) {
|
||||
|
|
@ -343,6 +347,7 @@
|
|||
alert('QR-код отсутствует');
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
alert('Ошибка загрузки QR');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue