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 Mar 30, 2024
1 parent 6361ac8 commit 17c93da
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 @@ -41,7 +41,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 17c93da

Please sign in to comment.