forked from rDrama/rDrama
1
0
Fork 0

add CTRL+enter in award modal

master
Aevann 2023-07-22 20:43:32 +03:00
parent 6a19105bdc
commit c83e214320
1 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,11 @@ if (!location.pathname.endsWith('/submit'))
const formDOM = targetDOM.parentElement;
if (formDOM.id == 'note_section') {
document.getElementById('giveaward').click();
return
}
const submitButtonDOMs = formDOM.querySelectorAll('input[type=submit], .btn-primary');
if(submitButtonDOMs.length === 0)
throw new TypeError("I am unable to find the submit button :(. Contact the head custodian immediately.")