Skip to content

Commit

Permalink
Fix bublé transpiling wrongly [...currentScript.attributes], try with…
Browse files Browse the repository at this point in the history
… Array#from instead

See bublejs/buble#131
  • Loading branch information
gwennlbh committed Dec 17, 2023
1 parent fb0895d commit ebe7f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
};

const getPageviewEventData = () => Object.fromEntries(
[...currentScript.attributes]
Array.from(currentScript.attributes)
.filter(attribute => attribute.name.match(pageviewCustomPropertyRegex))
.map(attribute => {
const match = attribute.name.match(pageviewCustomPropertyRegex);
Expand Down

0 comments on commit ebe7f08

Please sign in to comment.