Commit 9fb8b93e authored by Maik Marschner's avatar Maik Marschner Committed by Tim Neutkens

Use indexOf instead of startsWith (#3758)

* Use indexOf instead of startsWith

This fixes an IE11 regression, see #3755

* Lint the code
parent 523b6156
...@@ -60,7 +60,7 @@ function unique () { ...@@ -60,7 +60,7 @@ function unique () {
const metaCategories = {} const metaCategories = {}
return (h) => { return (h) => {
if (h.key && h.key.startsWith('.$')) { if (h.key && h.key.indexOf('.$') === 0) {
if (keys.has(h.key)) return false if (keys.has(h.key)) return false
keys.add(h.key) keys.add(h.key)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment