Skip to content

Commit d10ac7c

Browse files
authored
Fix exporting from nightly where the data-mx-theme is Light not light (matrix-org#7416)
1 parent 3dde039 commit d10ac7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/exportUtils/exportCSS.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function mutateCssText(css: string): string {
3939
const getExportCSS = async (usedClasses: Set<string>): Promise<string> => {
4040
// only include bundle.css and the data-mx-theme=light styling
4141
const stylesheets = Array.from(document.styleSheets).filter(s => {
42-
return s.href?.endsWith("bundle.css") || (s.ownerNode as HTMLStyleElement).dataset.mxTheme === "light";
42+
return s.href?.endsWith("bundle.css") ||
43+
(s.ownerNode as HTMLStyleElement).dataset.mxTheme.toLowerCase() === "light";
4344
});
4445

4546
let css = "";

0 commit comments

Comments
 (0)