Description
We can get rid of this eval
|
const loadGlyphs = (font) => { |
|
const fontJSON = cssJSON[font]; |
|
return Object.keys(fontJSON).reduce((acc, key) => { |
|
return { |
|
...acc, |
|
[key]: eval("'\\u" + fontJSON[key] + "'") // eslint-disable-line |
|
}; |
|
}, {}); |
|
}; |
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
Description
We can get rid of this eval
MapStore2/web/client/utils/MarkerUtils.js
Lines 25 to 33 in c5ed4d0
What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information