From 17b4a9395f85a0d3c7a446ae6fe7774d70396e10 Mon Sep 17 00:00:00 2001 From: Johannes Przymusinski Date: Mon, 11 Mar 2024 20:56:15 +0100 Subject: [PATCH] fix: rename imported init function --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 0461d76..807a4da 100644 --- a/src/index.js +++ b/src/index.js @@ -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});` ); }, },