Skip to content

Commit

Permalink
Require all fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Sominemo committed Jan 9, 2025
1 parent 84ea007 commit bc87cc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,16 @@ <h1>Telegram Limits Editor</h1>
dialog.remove();
});
dialog.querySelector('#sendButton').addEventListener('click', async () => {
if (!dialog.querySelector('#description').value) {
alert('Please describe your changes');
return;
}

if (!dialog.querySelector('#contact').value) {
alert('Please provide a contact');
return;
}

try {
const url = 'https://limits.tginfo.me/prop/suggest.php';

Expand Down

0 comments on commit bc87cc0

Please sign in to comment.