Skip to content

Commit

Permalink
[rules] JSRule: Update MIME type shown in the UI
Browse files Browse the repository at this point in the history
This is only a cosmetic change.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Jan 17, 2024
1 parent abb25a4 commit c8c644a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function JSRule (ruleConfig) {

// Add config to the action so that MainUI can show the script
const actionConfiguration = rule.actions.get(0).getConfiguration();
actionConfiguration.put('type', 'application/javascript;version=ECMAScript-2021'); // TODO: Update MIME type at some time
actionConfiguration.put('type', 'application/javascript');
actionConfiguration.put('script', '// Code to run when the rule fires:\n// Note that Rule Builder is currently not supported!\n\n' + ruleConfig.execute.toString());

return rule;
Expand Down

0 comments on commit c8c644a

Please sign in to comment.