aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/providers/prism.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/providers/prism.tsx')
-rw-r--r--src/utils/providers/prism.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/providers/prism.tsx b/src/utils/providers/prism.tsx
index 840f9d8..7a4221d 100644
--- a/src/utils/providers/prism.tsx
+++ b/src/utils/providers/prism.tsx
@@ -57,7 +57,7 @@ const getTheme = (key: string): PrismTheme | undefined => {
};
export const PrismThemeProvider: FC<PrismThemeProviderProps> = ({
- attribute = 'data-prismjs-color-scheme',
+ attribute = 'data-prismjs-color-scheme-current',
storageKey = 'prismjs-color-scheme',
themes = ['dark', 'light', 'system'],
children,
@@ -125,7 +125,6 @@ export const PrismThemeProvider: FC<PrismThemeProviderProps> = ({
mutations.forEach((record) => {
var mutatedPre = record.target as HTMLPreElement;
var newTheme = mutatedPre.getAttribute(attribute) as PrismTheme;
- console.log('here');
setPrismTheme(newTheme);
});
});