Skip to content

Commit b861b01

Browse files
authored
Fixed issue with vega
1 parent a04e206 commit b861b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/scripts/vega.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
></script>
2020

2121
<script>
22-
let theme = determineComputedTheme();
22+
let pageTheme = determineComputedTheme();
2323
2424
/* Create vega lite chart as another node and hide the code block, appending the vega lite node after it
2525
this is done to enable retrieving the code again when changing theme between light/dark */
@@ -35,7 +35,7 @@
3535
backup.after(chartElement);
3636
3737
/* Embed the visualization in the container */
38-
if (theme === 'dark') {
38+
if (pageTheme === 'dark') {
3939
vegaEmbed(chartElement, JSON.parse(jsonData), { theme: 'dark' });
4040
} else {
4141
vegaEmbed(chartElement, JSON.parse(jsonData));

0 commit comments

Comments
 (0)