Skip to content

Commit

Permalink
fix: rename imported init function
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Mar 11, 2024
1 parent 21ebd82 commit 17b4a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const createPlugin = (options) => {

injectScript(
"page",
`import { init } from '@jop-software/astro-matomo/matomo.js'; window.matomo = ${JSON.stringify(
`import { init as jopsoftware_matomo_init } from '@jop-software/astro-matomo/matomo.js'; window.matomo = ${JSON.stringify(
matomo
)}; init('${options.baseUrl}', ${options.siteId});`
)}; jopsoftware_matomo_init('${options.baseUrl}', ${options.siteId});`
);
},
},
Expand Down

0 comments on commit 17b4a93

Please sign in to comment.