Skip to content

Commit 935d4b6

Browse files
committed
wip(front): update custom prop and installs downstream svelte-plausible-analytics
accuser/svelte-plausible-analytics/pull/16
1 parent f26034d commit 935d4b6

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

front/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"postinstall": "patch-package"
3333
},
3434
"devDependencies": {
35-
"@accuser/svelte-plausible-analytics": "dgrebb/svelte-plausible-analytics#downstream/feature/support-custom-pageview-properties",
35+
"@accuser/svelte-plausible-analytics": "dgrebb/svelte-plausible-analytics#downstream/feature-support-custom-pageview-properties",
3636
"@iconify-json/entypo-social": "^1.1.8",
3737
"@iconify-json/gg": "^1.1.9",
3838
"@iconify-json/icomoon-free": "^1.1.8",

front/src/routes/+layout.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
{apiHost}
6363
enabled
6464
outboundLinks
65-
pageviewProps={{ theme: document.documentElement.classList }}
65+
pageviewProps={{
66+
theme: document.documentElement.classList.toString(),
67+
}}
6668
/>
6769
{/key}
6870
{/if}

0 commit comments

Comments
 (0)