From 9fb8b93ed919fa8631a4a7f38dfda5a308f54d91 Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Fri, 16 Feb 2018 16:05:57 +0100 Subject: [PATCH] Use indexOf instead of startsWith (#3758) * Use indexOf instead of startsWith This fixes an IE11 regression, see #3755 * Lint the code --- lib/head.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/head.js b/lib/head.js index 71b374f9..019cf3c1 100644 --- a/lib/head.js +++ b/lib/head.js @@ -60,7 +60,7 @@ function unique () { const metaCategories = {} return (h) => { - if (h.key && h.key.startsWith('.$')) { + if (h.key && h.key.indexOf('.$') === 0) { if (keys.has(h.key)) return false keys.add(h.key) }