Skip to content

Commit

Permalink
Fix #10615 removed eval from marker utils (#10616) (#10690)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored Nov 22, 2024
1 parent 02811cc commit e98aeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/utils/MarkerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const loadGlyphs = (font) => {
return Object.keys(fontJSON).reduce((acc, key) => {
return {
...acc,
[key]: eval("'\\u" + fontJSON[key] + "'") // eslint-disable-line
[key]: String.fromCharCode(parseInt(fontJSON[key], 16))
};
}, {});
};
Expand Down

0 comments on commit e98aeb9

Please sign in to comment.