Skip to content

Commit

Permalink
Update tw-scratchx-compatibility-layer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKart authored Apr 30, 2024
1 parent 11eec66 commit 96f8df0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extension-support/tw-scratchx-compatibility-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ const parseScratchXArgument = (argument, defaultValue) => {
const split = argument.split(/\.|:/);
const menuName = split[1];
result.menu = menuName;
} else if (argument === 'b') {
result.type = ArgumentType.BOOLEAN;
if (!hasDefaultValue) {
result.defaultValue = '';
}
} else {
throw new Error(`Unknown ScratchX argument type: ${argument}`);
}
Expand Down

0 comments on commit 96f8df0

Please sign in to comment.