Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Apr 10, 2024
1 parent 74e31a2 commit 2f2ba57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/autocapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ export class Autocapture {

const props: Properties = {}

console.log('elem.attributes', elem.attributes, elem)
_each(elem.attributes, function (attr: Attr) {
console.log('attr.name', attr, attr.name)
if (attr.name.indexOf('data-ph-capture-attribute') === 0) {
if (attr.name && attr.name.indexOf('data-ph-capture-attribute') === 0) {
const propertyKey = attr.name.replace('data-ph-capture-attribute-', '')
const propertyValue = attr.value
if (propertyKey && propertyValue && shouldCaptureValue(propertyValue)) {
Expand Down

0 comments on commit 2f2ba57

Please sign in to comment.