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 Oct 16, 2024
1 parent c5ed4d0 commit 1a9a01e
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 1a9a01e

Please sign in to comment.