Skip to content

Commit

Permalink
fix: change to use for-in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Jun 13, 2022
1 parent a65cf53 commit 99e15fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/package/templates/umd-msg.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
} else if (typeof exports === 'object') { // Node.js
module.exports = factory();
} else { // Browser
root.Blockly.setLocale(root.<%= namespace %>, factory());
const messages = factory();
for (const key in messages) {
root.<%= namespace %>[key] = messages[key];
}
}
}(this, function() {
<%= contents %>
Expand Down

0 comments on commit 99e15fe

Please sign in to comment.