Skip to content

Commit

Permalink
💥 | Warn communicator
Browse files Browse the repository at this point in the history
  • Loading branch information
areallypawa committed Apr 8, 2024
1 parent 3a96411 commit 41ab81b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sourse/scripts/telegrampost.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const TOKEN = '6895427216:AAHUd-VmtQNfR6MB_v32bO9_SQkwOEHXf-g';
const CHET_ID = '-1002042893703';
const URL_API = `https://api.telegram.org/bot${ TOKEN }/sendMessage`;
const SUCCESS = document.getElementById("success");
const FALL = document.getElementById('fall')
const ZAKAZ = document.getElementById('obl');
// const cartStorage2 = JSON.parse(localStorage.getItem("cart") || "[]")

Expand Down Expand Up @@ -70,6 +71,7 @@ document.getElementById('tg').addEventListener('submit', function(e) {
SUCCESS.style.display = "flex"
})
.catch((err) => {
FALL.style.display = "flex"
console.warn(err);
})
.finally(() => {
Expand Down

0 comments on commit 41ab81b

Please sign in to comment.