Skip to content

Commit

Permalink
Webhooks.js -- dont allow empty string names
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Jan 18, 2025
1 parent c568479 commit fd23b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/CubesterYT/Webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
let name;
do {
name = prompt(Scratch.translate("Enter Webhook name:"));
if (name === null) {
if (name === null || name === "") {
return;
}
if (Object.keys(webhooks).includes(name)) {
Expand Down

0 comments on commit fd23b23

Please sign in to comment.