Skip to content

Commit

Permalink
fix: use simple polyfilled includes method
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed Jun 10, 2019
1 parent 15affe3 commit 623970d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/updaters/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 623970d

Please sign in to comment.