Skip to content

Commit

Permalink
Merge pull request #14 from jop-software/13-astro-starlight-compatibi…
Browse files Browse the repository at this point in the history
…lity

fix: rename imported init function
  • Loading branch information
cngJo committed Mar 11, 2024
2 parents 21ebd82 + 17b4a93 commit 8a4348f
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 8a4348f

Please sign in to comment.