oops!
This commit is contained in:
parent
bee19d5af9
commit
2e6bc45977
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ elements.searchUsersForm.addEventListener('submit', async e => {
|
||||||
developerCheckbox.addEventListener('change', async e => {
|
developerCheckbox.addEventListener('change', async e => {
|
||||||
var developer = developerCheckbox.checked;
|
var developer = developerCheckbox.checked;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (!window.confirm(`Are you sure you want to ${developer ? "grant" : "revoke"} developer status ${developer ? "to" : "from"} ${_user.username}?`)) {
|
if (!window.confirm(`Are you sure you want to ${developer ? "grant" : "revoke"} developer status ${developer ? "to" : "from"} ${user.username}?`)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
developerCheckbox.checked = !developer;
|
developerCheckbox.checked = !developer;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue