Skip to content

Commit

Permalink
Fix #10615 removed eval from marker utils (#10616)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored and offtherailz committed Oct 18, 2024
1 parent e26b72a commit 83ec5b4
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 83ec5b4

Please sign in to comment.