From 623970d5fb63e62e3e35a1b4def7a13a1e7e0f90 Mon Sep 17 00:00:00 2001 From: pimlie Date: Mon, 10 Jun 2019 12:28:37 +0200 Subject: [PATCH] fix: use simple polyfilled includes method --- src/client/updaters/tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/updaters/tag.js b/src/client/updaters/tag.js index 1dcde15..25d5cc9 100644 --- a/src/client/updaters/tag.js +++ b/src/client/updaters/tag.js @@ -52,7 +52,7 @@ export default function updateTag(appId, { attribute, tagIDKeyName } = {}, type, const _attr = includes(dataAttributes, attr) ? `data-${attr}` : attr - const value = isUndefined(tag[attr]) || booleanHtmlAttributes.includes(attr) ? '' : tag[attr] + const value = isUndefined(tag[attr]) || includes(booleanHtmlAttributes, attr) ? '' : tag[attr] newElement.setAttribute(_attr, value) } }