Skip to content

Commit

Permalink
extend 'text' for 'action' (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
o0shojo0o committed Dec 26, 2022
1 parent 10f3d52 commit b436f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function genState(expose, role, name, desc) {
read: true,
type: 'string',
};
if (propName == 'action') {
if (propName.startsWith('action')) {
state.isEvent = true;
state.getter = (payload) => { return payload[propName]; };
}
Expand Down

0 comments on commit b436f89

Please sign in to comment.